* remote-fileio.c (remote_fileio_mode_to_target): Use
S_ISREG/S_ISDIR/S_ISCHR macros instead of S_IFREG/S_IFDIR/S_IFCHR.
This commit is contained in:
parent
657ff16a6b
commit
9c7deb13f0
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-12-15 Mark Kettenis <kettenis@gnu.org>
|
||||
|
||||
* remote-fileio.c (remote_fileio_mode_to_target): Use
|
||||
S_ISREG/S_ISDIR/S_ISCHR macros instead of S_IFREG/S_IFDIR/S_IFCHR.
|
||||
|
||||
2006-12-15 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
* breakpoint.c (insert_bp_location): Add newline to note.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue