Revert my older supposed gcc-4.4 warning workaround. GCC was not being needlessly prissy; it was hinting at the wrongly pure smartlist_bsearch_idx.

svn:r17396
This commit is contained in:
Nick Mathewson 2008-11-26 17:14:59 +00:00
parent 651a0a2fb5
commit 191197eff7

View File

@ -494,7 +494,7 @@ void *
smartlist_bsearch(smartlist_t *sl, const void *key,
int (*compare)(const void *key, const void **member))
{
int found=0, idx;
int found, idx;
idx = smartlist_bsearch_idx(sl, key, compare, &found);
return found ? smartlist_get(sl, idx) : NULL;
}