summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-12-16 14:06:25 -0500
committerNick Mathewson <nickm@torproject.org>2016-12-16 14:06:25 -0500
commitff08be56acab7fbdc312142284dccb20516f15f2 (patch)
tree35e9e38d4248da71f7fa267b2cfb4015812ec69a
parent762b799545ad200c126f0b7d9981630802688c2b (diff)
downloadtor-ff08be56acab7fbdc312142284dccb20516f15f2.tar.gz
tor-ff08be56acab7fbdc312142284dccb20516f15f2.zip
Fix another pointless stack-protector warning.
This is the same as we fixed in 39f455468731d4746adb729a67.
-rw-r--r--src/test/test_entrynodes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test_entrynodes.c b/src/test/test_entrynodes.c
index 30c93397ec..32f8b6e0dd 100644
--- a/src/test/test_entrynodes.c
+++ b/src/test/test_entrynodes.c
@@ -1625,7 +1625,7 @@ test_entry_guard_node_filter(void *arg)
bridge_line_t *bl = NULL;
/* Initialize a bunch of node objects that are all guards. */
- const int NUM = 7;
+#define NUM 7
node_t *n[NUM];
entry_guard_t *g[NUM];
int i;
@@ -1704,6 +1704,7 @@ test_entry_guard_node_filter(void *arg)
done:
guard_selection_free(gs);
tor_free(bl);
+#undef NUM
}
static void