diff options
author | Mark Kettenis <kettenis@gnu.org> | 2006-12-15 23:17:56 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2006-12-15 23:17:56 +0000 |
commit | ff0dd6ae30bbaaaa98257615b7d8d0817c27ae50 (patch) | |
tree | 4b50997fb7944ff6e4a5068d2520f86ed55e177d /gdb/remote-fileio.c | |
parent | 1f2c4001cfa993236f294afa106269c676e1512a (diff) | |
download | gdb-ff0dd6ae30bbaaaa98257615b7d8d0817c27ae50.tar.gz |
* 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.c | 6 |
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; |