diff options
author | Vincent Sanders <vince@kyllikki.org> | 2019-10-12 15:41:19 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2019-10-12 15:41:19 +0100 |
commit | c82049eb84250330b28b29fc327d12a4b5f8a77f (patch) | |
tree | 8dc14fd004776f7f43cf362a4c827d4e3d8484b9 | |
parent | 4745fcf1c78da101314252bd6ad65db5880434eb (diff) | |
download | netsurf-c82049eb84250330b28b29fc327d12a4b5f8a77f.tar.gz netsurf-c82049eb84250330b28b29fc327d12a4b5f8a77f.tar.bz2 |
improve brackets in fallback timeval macros
-rw-r--r-- | utils/sys_time.h | 6 |
1 files changed, 3 insertions, 3 deletions
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 <sys/time.h> #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 |