From: Paul Eggert Date: Tue, 5 Dec 2006 18:13:50 +0000 (+0000) Subject: Prefer fd < 0 to ! (0 <= fd). X-Git-Tag: cvs-readonly~1505 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=e7641b56ab300ed94ec035922b762d78f99bcbd6;p=gnulib.git Prefer fd < 0 to ! (0 <= fd). --- diff --git a/lib/utimens.c b/lib/utimens.c index e72b84046..8f4273c80 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