From: Nick Mathewson Date: Wed, 26 Nov 2008 17:14:59 +0000 (+0000) Subject: Revert my older supposed gcc-4.4 warning workaround. GCC was not being needlessly... X-Git-Tag: tor-0.2.1.8-alpha~52 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=191197eff75a282d240a91c05de4d0f0c9d0bf70;p=thirdparty%2Ftor.git 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 --- diff --git a/src/common/container.c b/src/common/container.c index bf2ced2e2e..060615d1c3 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; }