]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
clarify what smartlist_remove promises, since we rely on it.
authorRoger Dingledine <arma@torproject.org>
Mon, 31 Jan 2005 00:24:59 +0000 (00:24 +0000)
committerRoger Dingledine <arma@torproject.org>
Mon, 31 Jan 2005 00:24:59 +0000 (00:24 +0000)
svn:r3473

src/common/container.c

index b76b94f013c8dd1e2d32184e2f9993570360d5df..4dc0a7ad77df0e31bd559b860f57254a8d4b4178 100644 (file)
@@ -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;