summaryrefslogtreecommitdiff
path: root/src/test/test_entrynodes.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-07-16 16:52:16 +0200
committerNick Mathewson <nickm@torproject.org>2014-07-16 16:52:16 +0200
commit5690284559af012c279e9b989497ccc2e03cfc70 (patch)
treed9a9eb2232377f8d38bcb06b82daf0bb921e585a /src/test/test_entrynodes.c
parent368ff2291b0b400e0ee908ad465ed6f0f56330ec (diff)
downloadtor-5690284559af012c279e9b989497ccc2e03cfc70.tar.gz
tor-5690284559af012c279e9b989497ccc2e03cfc70.zip
Fix wide lines, make entry_is_live() non-inline
Diffstat (limited to 'src/test/test_entrynodes.c')
-rw-r--r--src/test/test_entrynodes.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/test_entrynodes.c b/src/test/test_entrynodes.c
index 47d8bc3c74..1be0ce126b 100644
--- a/src/test/test_entrynodes.c
+++ b/src/test/test_entrynodes.c
@@ -553,6 +553,7 @@ test_entry_is_live(void *arg)
const node_t *test_node = NULL;
const entry_guard_t *test_entry = NULL;
const char *msg;
+ int which_node;
(void) arg;
@@ -576,7 +577,8 @@ test_entry_is_live(void *arg)
tt_int_op(smartlist_len(all_entry_guards), ==, NUMBER_OF_DESCRIPTORS);
/* Now get a random test entry that we will use for this unit test. */
- test_entry = smartlist_get(all_entry_guards, 3); /* chosen by fair dice roll */
+ which_node = 3; /* (chosen by fair dice roll) */
+ test_entry = smartlist_get(all_entry_guards, which_node);
/* Let's do some entry_is_live() tests! */