diff options
author | Roger Dingledine <arma@torproject.org> | 2005-01-31 00:24:59 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-01-31 00:24:59 +0000 |
commit | c53c7a0b4c2362e3985290c57a6ca756b84c7f59 (patch) | |
tree | fdf8303848259c9c252f374894d407c546249cf7 /src | |
parent | 5d8659429e9c2868d2ae6dcbc780ec41a459abba (diff) | |
download | tor-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.c | 5 |
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; |