summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-10-12 15:41:19 +0100
committerVincent Sanders <vince@kyllikki.org>2019-10-12 15:41:19 +0100
commitc82049eb84250330b28b29fc327d12a4b5f8a77f (patch)
tree8dc14fd004776f7f43cf362a4c827d4e3d8484b9
parent4745fcf1c78da101314252bd6ad65db5880434eb (diff)
downloadnetsurf-c82049eb84250330b28b29fc327d12a4b5f8a77f.tar.gz
netsurf-c82049eb84250330b28b29fc327d12a4b5f8a77f.tar.bz2
improve brackets in fallback timeval macros
-rw-r--r--utils/sys_time.h6
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