[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Fix another pointless stack-protector warning.
commit ff08be56acab7fbdc312142284dccb20516f15f2
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Fri Dec 16 14:06:25 2016 -0500
Fix another pointless stack-protector warning.
This is the same as we fixed in 39f455468731d4746adb729a67.
---
src/test/test_entrynodes.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/test/test_entrynodes.c b/src/test/test_entrynodes.c
index 30c9339..32f8b6e 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
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits