summaryrefslogtreecommitdiff
path: root/src/common/container.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-01-10 15:44:32 -0500
committerNick Mathewson <nickm@torproject.org>2015-01-10 15:44:32 -0500
commitddfdeb5659be17b3e7a4c34b749207bdeae5124a (patch)
treec9f3649051d1b8d03571497d74b3887d28f9fe50 /src/common/container.c
parentc83d83814660b643b705ed7de4aa1fc35e2d20ad (diff)
downloadtor-ddfdeb5659be17b3e7a4c34b749207bdeae5124a.tar.gz
tor-ddfdeb5659be17b3e7a4c34b749207bdeae5124a.zip
More documentation for proposal 227 work
Diffstat (limited to 'src/common/container.c')
-rw-r--r--src/common/container.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/container.c b/src/common/container.c
index 68e3711c90..864fd8a552 100644
--- a/src/common/container.c
+++ b/src/common/container.c
@@ -735,7 +735,10 @@ smartlist_get_most_frequent_string(smartlist_t *sl)
return smartlist_get_most_frequent(sl, compare_string_ptrs_);
}
-/** Return the most frequent string in the sorted list <b>sl</b> */
+/** Return the most frequent string in the sorted list <b>sl</b>.
+ * If <b>count_out</b> is provided, set <b>count_out</b> to the
+ * number of times that string appears.
+ */
char *
smartlist_get_most_frequent_string_(smartlist_t *sl, int *count_out)
{