changeset 27404:5a4ff089a7d4

Prefer fd < 0 to ! (0 <= fd).
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 05 Dec 2006 18:13:50 +0000
parents c46a59853fb5
children 8fbd12a68e04
files lib/utimens.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lib/utimens.c	Tue Dec 05 18:09:17 2006 +0000
+++ b/lib/utimens.c	Tue Dec 05 18:13:50 2006 +0000
@@ -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