diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-08-26 13:09:26 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-09-26 10:56:52 -0700 |
commit | e402cddefeaabc6d65a5efe6f1e0e958d40aa013 (patch) | |
tree | fe8d6a94fef99d8534bc9ed6c7755d995b0715e9 /src/or/protover.c | |
parent | 1e29c68ba9ad87861cc6c8a9c6d87cc5773d0480 (diff) | |
download | tor-e402cddefeaabc6d65a5efe6f1e0e958d40aa013.tar.gz tor-e402cddefeaabc6d65a5efe6f1e0e958d40aa013.zip |
Clean whitespace, add missing documentation
Diffstat (limited to 'src/or/protover.c')
-rw-r--r-- | src/or/protover.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/protover.c b/src/or/protover.c index 66d20c5851..d29cdba099 100644 --- a/src/or/protover.c +++ b/src/or/protover.c @@ -620,7 +620,6 @@ protover_all_supported(const char *s, char **missing_out) smartlist_add(missing, (void*) ent); } SMARTLIST_FOREACH_END(ent); - if (missing_out && !all_supported) { tor_assert(0 != smartlist_len(missing)); *missing_out = encode_protocol_list(missing); @@ -633,6 +632,8 @@ protover_all_supported(const char *s, char **missing_out) return all_supported; } +/** Helper: Given a list of proto_entry_t, return true iff + * <b>pr</b>=<b>ver</b> is included in that list. */ static int protocol_list_contains(const smartlist_t *protos, protocol_type_t pr, uint32_t ver) @@ -697,3 +698,4 @@ protover_free_all(void) supported_protocol_list = NULL; } } + |