make compile slightly happier on const-zealous compilers

svn:r5015
This commit is contained in:
Nick Mathewson 2005-09-12 08:29:53 +00:00
parent 2689cb081b
commit c1a6940e73

View File

@ -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