From c1a6940e7364517ab6f29a0134a444194fa6728f Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 12 Sep 2005 08:29:53 +0000 Subject: make compile slightly happier on const-zealous compilers svn:r5015 --- src/common/container.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common') diff --git a/src/common/container.c b/src/common/container.c index 1e6d1954d2..8499a56e44 100644 --- a/src/common/container.c +++ b/src/common/container.c @@ -420,9 +420,9 @@ smartlist_bsearch(smartlist_t *sl, const void *key, } static int -_compare_string_ptrs(void **_a, void **_b) +_compare_string_ptrs(const void **_a, const void **_b) { - return strcmp((char*)*_a, (char*)*_b); + return strcmp((const char*)*_a, (const char*)*_b); } void -- cgit v1.2.3-54-g00ecf