aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-11-26 17:14:59 +0000
committerNick Mathewson <nickm@torproject.org>2008-11-26 17:14:59 +0000
commit191197eff75a282d240a91c05de4d0f0c9d0bf70 (patch)
treece1609f05303421344f616ea6e59a18a994828c6 /src
parent651a0a2fb5856a0e14e745b33a8d3d97387df862 (diff)
downloadtor-191197eff75a282d240a91c05de4d0f0c9d0bf70.tar
tor-191197eff75a282d240a91c05de4d0f0c9d0bf70.tar.gz
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
Diffstat (limited to 'src')
-rw-r--r--src/common/container.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/container.c b/src/common/container.c
index bf2ced2e2..060615d1c 100644
--- a/src/common/container.c
+++ b/src/common/container.c
@@ -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;
}