Prefer fd < 0 to ! (0 <= fd).
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 5 Dec 2006 18:13:50 +0000 (18:13 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 5 Dec 2006 18:13:50 +0000 (18:13 +0000)
lib/utimens.c

index e72b840..8f4273c 100644 (file)
@@ -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