summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-01-31 00:24:59 +0000
committerRoger Dingledine <arma@torproject.org>2005-01-31 00:24:59 +0000
commitc53c7a0b4c2362e3985290c57a6ca756b84c7f59 (patch)
treefdf8303848259c9c252f374894d407c546249cf7 /src
parent5d8659429e9c2868d2ae6dcbc780ec41a459abba (diff)
downloadtor-c53c7a0b4c2362e3985290c57a6ca756b84c7f59.tar.gz
tor-c53c7a0b4c2362e3985290c57a6ca756b84c7f59.zip
clarify what smartlist_remove promises, since we rely on it.
svn:r3473
Diffstat (limited to 'src')
-rw-r--r--src/common/container.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/container.c b/src/common/container.c
index b76b94f013..4dc0a7ad77 100644
--- a/src/common/container.c
+++ b/src/common/container.c
@@ -100,8 +100,9 @@ void smartlist_add_all(smartlist_t *sl, const smartlist_t *s2)
SMARTLIST_FOREACH(s2, void *, element, smartlist_add(sl, element));
}
-/** Remove all elements E from sl such that E==element. Does not preserve
- * the order of s1.
+/** Remove all elements E from sl such that E==element. Preserve
+ * the order of any elements before E, but elements after E can be
+ * rearranged.
*/
void smartlist_remove(smartlist_t *sl, void *element) {
int i;