From: Arran Cudbard-Bell Date: Fri, 16 Apr 2021 18:39:41 +0000 (-0500) Subject: Use the cmp macro in fr_time_cmp X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2365583ab5e55e243d41cdd02eede749c3723f26;p=thirdparty%2Ffreeradius-server.git Use the cmp macro in fr_time_cmp --- diff --git a/src/lib/util/time.h b/src/lib/util/time.h index 8abe6674e6f..a58f01a4019 100644 --- a/src/lib/util/time.h +++ b/src/lib/util/time.h @@ -315,7 +315,7 @@ static inline CC_HINT(nonnull) fr_time_t fr_time_from_timespec(struct timespec c */ static inline int8_t fr_time_cmp(fr_time_t a, fr_time_t b) { - return (a > b) - (a < b); + return CMP(a, b); } /** Return a relative time since the server our_epoch