summary refs log tree commit diff
path: root/nscd/connections.c
diff options
context:
space:
mode:
Diffstat (limited to 'nscd/connections.c')
-rw-r--r--nscd/connections.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/nscd/connections.c b/nscd/connections.c
index aae798ed47..594a5b8950 100644
--- a/nscd/connections.c
+++ b/nscd/connections.c
@@ -1459,16 +1459,15 @@ start_threads (void)
     && defined _POSIX_MONOTONIC_CLOCK && _POSIX_MONOTONIC_CLOCK >= 0
   /* Determine whether the monotonous clock is available.  */
   struct timespec dummy;
-  if (
 # if _POSIX_MONOTONIC_CLOCK == 0
-      sysconf (_SC_MONOTONIC_CLOCK) > 0 &&
+  if (sysconf (_SC_MONOTONIC_CLOCK) > 0)
 # endif
 # if _POSIX_CLOCK_SELECTION == 0
-      sysconf (_SC_CLOCK_SELECTION) > 0 &&
+    if (sysconf (_SC_CLOCK_SELECTION) > 0)
 # endif
-      clock_getres (CLOCK_MONOTONIC, &dummy) == 0
-      && pthread_condattr_setclock (&condattr, CLOCK_MONOTONIC) == 0)
-    timeout_clock = CLOCK_MONOTONIC;
+      if (clock_getres (CLOCK_MONOTONIC, &dummy) == 0
+	  && pthread_condattr_setclock (&condattr, CLOCK_MONOTONIC) == 0)
+	timeout_clock = CLOCK_MONOTONIC;
 #endif
 
   pthread_cond_init (&readylist_cond, &condattr);