From d86a45f991693cf2367a6ccb94fc29c22f5f7b45 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sat, 9 Feb 2013 00:14:45 -0500 Subject: Wrap more macro definitions in (parentheses) To avoid surprises, good coding practice suggests parenthesizing every macro definition -- or at the very least, all those involving an expression. --- src/or/rephist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/rephist.c') diff --git a/src/or/rephist.c b/src/or/rephist.c index 34caa4b518..1bee6459cc 100644 --- a/src/or/rephist.c +++ b/src/or/rephist.c @@ -1549,7 +1549,7 @@ rep_hist_get_bandwidth_lines(void) /* [dirreq-](read|write)-history yyyy-mm-dd HH:MM:SS (n s) n,n,n... */ /* The n,n,n part above. Largest representation of a uint64_t is 20 chars * long, plus the comma. */ -#define MAX_HIST_VALUE_LEN 21*NUM_TOTALS +#define MAX_HIST_VALUE_LEN (21*NUM_TOTALS) len = (67+MAX_HIST_VALUE_LEN)*4; buf = tor_malloc_zero(len); cp = buf; -- cgit v1.2.3-54-g00ecf