From 4f4a858eb6c0413aff0e4a0a787f151563643666 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 23 Jun 2005 03:19:03 +0000 Subject: [PATCH] * src/common.h (timespec_lt): Add a return type: bool. --- ChangeLog | 4 ++++ src/common.h | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 14e01a7..111023c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-06-22 Jim Meyering + + * src/common.h (timespec_lt): Add a return type: bool. + 2005-06-21 Paul Eggert Further improvements inspired by Jim Meyering's fixes. diff --git a/src/common.h b/src/common.h index 70a925c..b893fcc 100644 --- a/src/common.h +++ b/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. */ -- 2.44.0