]> Dogcows Code - chaz/tar/commitdiff
* src/common.h (timespec_lt): Add a return type: bool.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 23 Jun 2005 03:19:03 +0000 (03:19 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 23 Jun 2005 03:19:03 +0000 (03:19 +0000)
ChangeLog
src/common.h

index 14e01a7a69a6abb2c9a6b0f586c00eb15bb94344..111023c51a3a703bdb0df8957f6f0d3ae4641eed 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-06-22  Jim Meyering  <jim@meyering.net>
+
+       * src/common.h (timespec_lt): Add a return type: bool.
+
 2005-06-21  Paul Eggert  <eggert@cs.ucla.edu>
 
        Further improvements inspired by Jim Meyering's fixes.
index 70a925c912d7a8f073c4f7bc6d630d181cbed263..b893fcc944fad45a3b5bd4c7a96ead0b4e9cfb6e 100644 (file)
@@ -191,10 +191,11 @@ GLOBAL struct timespec newer_mtime_option;
   timespec_lt (get_stat_##m##time (&st), newer_mtime_option)
 
 /* Return true if A < B.  */
-static inline
+static inline bool
 timespec_lt (struct timespec a, struct timespec b)
 {
-  return a.tv_sec < b.tv_sec || (a.tv_sec == b.tv_sec && a.tv_nsec < b.tv_nsec);
+  return (a.tv_sec < b.tv_sec
+         || (a.tv_sec == b.tv_sec && a.tv_nsec < b.tv_nsec));
 }
 
 /* Zero if there is no recursion, otherwise FNM_LEADING_DIR.  */
This page took 0.033642 seconds and 4 git commands to generate.