summaryrefslogtreecommitdiff
path: root/lib/utimens.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-12-05 18:13:50 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-12-05 18:13:50 +0000
commite7641b56ab300ed94ec035922b762d78f99bcbd6 (patch)
tree2f66099bdbd8a1e3caa94e9dba3236676b627498 /lib/utimens.c
parente79ca436ed76c5537508f3901d7fefdc67412220 (diff)
downloadgnulib-e7641b56ab300ed94ec035922b762d78f99bcbd6.tar.gz
Prefer fd < 0 to ! (0 <= fd).
Diffstat (limited to 'lib/utimens.c')
-rw-r--r--lib/utimens.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/utimens.c b/lib/utimens.c
index e72b84046d..8f4273c808 100644
--- a/lib/utimens.c
+++ b/lib/utimens.c
@@ -87,10 +87,10 @@ futimens (int fd ATTRIBUTE_UNUSED,
problem affects many applications. */
#if HAVE_BUGGY_NFS_TIME_STAMPS
- if (0 <= fd)
- fsync (fd);
- else
+ if (fd < 0)
sync ();
+ else
+ fsync (fd);
#endif
/* There's currently no interface to set file timestamps with