diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-08-13 22:14:14 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-08-13 22:14:14 -0400 |
commit | 216bde38e0cb281ca919a1429da0e542fad67612 (patch) | |
tree | 0ae913dbd80e4da46e59b8a2e4a325f5ba4b9776 /src/common/container.c | |
parent | 0b3fe6272e55ff41e343ba5862ded6f0324f68b9 (diff) | |
download | tor-216bde38e0cb281ca919a1429da0e542fad67612.tar.gz tor-216bde38e0cb281ca919a1429da0e542fad67612.zip |
Fix some types on container fns
Diffstat (limited to 'src/common/container.c')
-rw-r--r-- | src/common/container.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/container.c b/src/common/container.c index 082afb51ee..636dfb6c57 100644 --- a/src/common/container.c +++ b/src/common/container.c @@ -742,7 +742,7 @@ smartlist_sort_strings(smartlist_t *sl) } /** Return the most frequent string in the sorted list <b>sl</b> */ -char * +const char * smartlist_get_most_frequent_string(smartlist_t *sl) { return smartlist_get_most_frequent(sl, compare_string_ptrs_); @@ -752,7 +752,7 @@ smartlist_get_most_frequent_string(smartlist_t *sl) * If <b>count_out</b> is provided, set <b>count_out</b> to the * number of times that string appears. */ -char * +const char * smartlist_get_most_frequent_string_(smartlist_t *sl, int *count_out) { return smartlist_get_most_frequent_(sl, compare_string_ptrs_, count_out); @@ -1020,7 +1020,7 @@ smartlist_sort_digests256(smartlist_t *sl) /** Return the most frequent member of the sorted list of DIGEST256_LEN * digests in <b>sl</b> */ -char * +const uint8_t * smartlist_get_most_frequent_digest256(smartlist_t *sl) { return smartlist_get_most_frequent(sl, compare_digests256_); |