소스 검색

* src/common.h (timespec_lt): Add a return type: bool.

Paul Eggert 20 년 전
부모
커밋
4f4a858eb6
2개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 0
      ChangeLog
  2. 3 2
      src/common.h

+ 4 - 0
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.

+ 3 - 2
src/common.h

@@ -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.  */