mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
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:
parent
651a0a2fb5
commit
191197eff7
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user