changeset 7713:064005e1c3c3

Prefer fd < 0 to ! (0 <= fd).
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 05 Dec 2006 18:13:50 +0000
parents aead3397193a
children 61676ffecb66
files lib/utimens.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lib/utimens.c
+++ b/lib/utimens.c
@@ -87,10 +87,10 @@
      problem affects many applications.  */
 
 #if HAVE_BUGGY_NFS_TIME_STAMPS
-  if (0 <= fd)
+  if (fd < 0)
+    sync ();
+  else
     fsync (fd);
-  else
-    sync ();
 #endif
 
   /* There's currently no interface to set file timestamps with