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