aboutsummaryrefslogtreecommitdiff
path: root/src/or/rephist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-02-09 00:14:45 -0500
committerNick Mathewson <nickm@torproject.org>2013-02-09 00:16:04 -0500
commitd86a45f991693cf2367a6ccb94fc29c22f5f7b45 (patch)
treeb369a86d438d8541cdf5e03c9e6f03b464c20375 /src/or/rephist.c
parent561e9becbd1f896c31112ab2dfd56fe7badc9382 (diff)
downloadtor-d86a45f991693cf2367a6ccb94fc29c22f5f7b45.tar.gz
tor-d86a45f991693cf2367a6ccb94fc29c22f5f7b45.zip
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.
Diffstat (limited to 'src/or/rephist.c')
-rw-r--r--src/or/rephist.c2
1 files changed, 1 insertions, 1 deletions
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;