From c82049eb84250330b28b29fc327d12a4b5f8a77f Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 12 Oct 2019 15:41:19 +0100 Subject: improve brackets in fallback timeval macros --- utils/sys_time.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'utils') diff --git a/utils/sys_time.h b/utils/sys_time.h index fe8e5f6f3..c9ce8202f 100644 --- a/utils/sys_time.h +++ b/utils/sys_time.h @@ -31,7 +31,7 @@ #include #ifndef timerclear -#define timerclear(a) (a)->tv_sec = (a)->tv_usec = 0 +#define timerclear(a) ((a)->tv_sec = (a)->tv_usec = 0) #endif #ifndef timerisset @@ -64,8 +64,8 @@ #ifndef timercmp #define timercmp(a, aa, cmp) \ - ((a)->tv_sec cmp (aa)->tv_sec || \ - (a)->tv_sec == (aa)->tv_sec && (a)->tv_usec cmp (aa)->tv_usec) + (((a)->tv_sec cmp (aa)->tv_sec) || \ + ((a)->tv_sec == (aa)->tv_sec && (a)->tv_usec cmp (aa)->tv_usec)) #endif #endif -- cgit v1.2.3