bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libposix build logs


From: Paul Eggert
Subject: Re: libposix build logs
Date: Sat, 25 Dec 2010 14:11:19 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7

I also pushed this, to simplify the logic of my previous change.
It shouldn't affect whether the test succeeds.  Sorry about the noise.

>From f0f3beb58cf369ea9aa146c54422f834dacb84d8 Mon Sep 17 00:00:00 2001
From: Paul Eggert <address@hidden>
Date: Sat, 25 Dec 2010 14:08:38 -0800
Subject: [PATCH] utimens: simplify the logic of the previous change

* m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
This should not affect whether the test succeeds or fails.
---
 ChangeLog    |    4 ++++
 m4/utimes.m4 |    6 ++----
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 18cd30e..02ff643 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2010-12-25  Paul Eggert  <address@hidden>
 
+       utimens: simplify the logic of the previous change
+       * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
+       This should not affect whether the test succeeds or fails.
+
        utimens: configure better on hosts with NFS clock skew
        * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
        uses the clock of the local host.  It might use the clock of the
diff --git a/m4/utimes.m4 b/m4/utimes.m4
index 81865cb..4a41541 100644
--- a/m4/utimes.m4
+++ b/m4/utimes.m4
@@ -96,13 +96,11 @@ main ()
           result |= 1;
         else
           {
-            int a_ok_POSIX = inorder (t0, st1.st_atime, t2);
             int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
-            int a_ok_NFS = inorder (st0.st_mtime, st1.st_atime, st2.st_mtime);
             int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
-            if (! ((a_ok_POSIX || a_ok_NFS) && st1.st_atime == st1.st_mtime))
+            if (! (st1.st_atime == st1.st_mtime))
               result |= 16;
-            if (! (a_ok_POSIX ? m_ok_POSIX : m_ok_NFS))
+            if (! (m_ok_POSIX || m_ok_NFS))
               result |= 32;
           }
         if (close (fd) != 0)
-- 
1.7.2





reply via email to

[Prev in Thread] Current Thread [Next in Thread]