aboutsummaryrefslogtreecommitdiff
path: root/src/or/onion_fast.h
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/onion_fast.h
parent561e9becbd1f896c31112ab2dfd56fe7badc9382 (diff)
downloadtor-d86a45f991693cf2367a6ccb94fc29c22f5f7b45.tar
tor-d86a45f991693cf2367a6ccb94fc29c22f5f7b45.tar.gz
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/onion_fast.h')
-rw-r--r--src/or/onion_fast.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/onion_fast.h b/src/or/onion_fast.h
index 0c2a47537..8c078378d 100644
--- a/src/or/onion_fast.h
+++ b/src/or/onion_fast.h
@@ -13,7 +13,7 @@
#define TOR_ONION_FAST_H
#define CREATE_FAST_LEN DIGEST_LEN
-#define CREATED_FAST_LEN DIGEST_LEN*2
+#define CREATED_FAST_LEN (DIGEST_LEN*2)
typedef struct fast_handshake_state_t {
uint8_t state[DIGEST_LEN];