]> git.ozlabs.org Git - ccan/blobdiff - ccan/time/time.h
shachain: Fix signed/unsigned mismatches
[ccan] / ccan / time / time.h
index 46568425c7cd44594e3964d3f8435f316d11eed4..5c916f4c4c2ef04b9648791d862bb3eea731a6cd 100644 (file)
@@ -66,7 +66,7 @@ struct timemono {
  * Otherwise time_mono() just refers to time_now().  Your code might
  * test this if you really need a monotonic clock.
  */
-#if (HAVE_CLOCK_GETTIME || HAVE_CLOCK_GETTIME_IN_LIBRT) && defined(CLOCK_MONOTONIC)
+#if HAVE_CLOCK_GETTIME && defined(CLOCK_MONOTONIC)
 #define TIME_HAVE_MONOTONIC 1
 #endif
 
@@ -249,7 +249,7 @@ static inline bool timeabs_eq(struct timeabs a, struct timeabs b)
  *                     exit(0);
  *             }
  *             wait(NULL);
- *             diff = time_between(start, time_now());
+ *             diff = time_between(time_now(), start);
  *             return timerel_eq(diff, zero);
  *     }
  */