[or-cvs] r17396: {tor} Revert my older supposed gcc-4.4 warning workaround. GCC was (tor/trunk/src/common)
nickm at seul.org
nickm at seul.org
Wed Nov 26 17:14:59 UTC 2008
Author: nickm
Date: 2008-11-26 12:14:59 -0500 (Wed, 26 Nov 2008)
New Revision: 17396
Modified:
tor/trunk/src/common/container.c
Log:
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.
Modified: tor/trunk/src/common/container.c
===================================================================
--- tor/trunk/src/common/container.c 2008-11-26 17:03:32 UTC (rev 17395)
+++ tor/trunk/src/common/container.c 2008-11-26 17:14:59 UTC (rev 17396)
@@ -494,7 +494,7 @@
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;
}
More information about the tor-commits
mailing list