diff options
author | David Goulet <dgoulet@torproject.org> | 2017-11-22 12:46:45 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2017-11-22 15:50:13 -0500 |
commit | 36f1fb3be30f2563c7fa1eb220cb0484767adc28 (patch) | |
tree | 1ea1af0cc1659b76b4751ec84435ea6a50900981 /src/or | |
parent | 47aaaf44032aa689dddbc13d07794b50a603c883 (diff) | |
download | tor-36f1fb3be30f2563c7fa1eb220cb0484767adc28.tar.gz tor-36f1fb3be30f2563c7fa1eb220cb0484767adc28.zip |
test: Add unit test for channel_check_for_duplicates()
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/channel.c | 3 | ||||
-rw-r--r-- | src/or/channel.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/or/channel.c b/src/or/channel.c index ffa8270648..5a5a7e27d7 100644 --- a/src/or/channel.c +++ b/src/or/channel.c @@ -149,7 +149,6 @@ HT_GENERATE2(channel_idmap, channel_idmap_entry_s, node, channel_idmap_hash, channel_idmap_eq, 0.5, tor_reallocarray_, tor_free_) /* Functions to maintain the digest map */ -static void channel_add_to_digest_map(channel_t *chan); static void channel_remove_from_digest_map(channel_t *chan); static void channel_force_free(channel_t *chan); @@ -551,7 +550,7 @@ channel_listener_unregister(channel_listener_t *chan_l) * already exist. */ -static void +STATIC void channel_add_to_digest_map(channel_t *chan) { channel_idmap_entry_t *ent, search; diff --git a/src/or/channel.h b/src/or/channel.h index 5a2457faf0..d88a77c9ae 100644 --- a/src/or/channel.h +++ b/src/or/channel.h @@ -431,6 +431,8 @@ void channel_set_cmux_policy_everywhere(circuitmux_policy_t *pol); #ifdef CHANNEL_PRIVATE_ +STATIC void channel_add_to_digest_map(channel_t *chan); + #endif /* defined(CHANNEL_PRIVATE_) */ /* Channel operations for subclasses and internal use only */ |