aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2006-12-15 23:17:56 +0000
committerMark Kettenis <kettenis@gnu.org>2006-12-15 23:17:56 +0000
commit9c7deb13f0e8432ea757903fa43400cbd43ba84a (patch)
tree00e83942b39bcf903e02cacb701d2484f645da6c /gdb/remote-fileio.c
parentdaily update (diff)
downloadbinutils-gdb-9c7deb13f0e8432ea757903fa43400cbd43ba84a.tar.gz
binutils-gdb-9c7deb13f0e8432ea757903fa43400cbd43ba84a.tar.bz2
binutils-gdb-9c7deb13f0e8432ea757903fa43400cbd43ba84a.zip
* remote-fileio.c (remote_fileio_mode_to_target): Use
S_ISREG/S_ISDIR/S_ISCHR macros instead of S_IFREG/S_IFDIR/S_IFCHR.
Diffstat (limited to 'gdb/remote-fileio.c')
-rw-r--r--gdb/remote-fileio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/remote-fileio.c b/gdb/remote-fileio.c
index 96c4d958736..eb7ae382963 100644
--- a/gdb/remote-fileio.c
+++ b/gdb/remote-fileio.c
@@ -192,11 +192,11 @@ remote_fileio_mode_to_target (mode_t mode)
{
mode_t tmode = 0;
- if (mode & S_IFREG)
+ if (S_ISREG(mode))
tmode |= FILEIO_S_IFREG;
- if (mode & S_IFDIR)
+ if (S_ISDIR(mode))
tmode |= FILEIO_S_IFDIR;
- if (mode & S_IFCHR)
+ if (S_ISCHR(mode))
tmode |= FILEIO_S_IFCHR;
if (mode & S_IRUSR)
tmode |= FILEIO_S_IRUSR;