diff options
author | Roger Dingledine <arma@torproject.org> | 2005-12-31 06:26:10 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-12-31 06:26:10 +0000 |
commit | 6005e110b9c8c3c9cf0afdcccf83cdbdc834e3d4 (patch) | |
tree | a468445d7f8a5f49376348adfde88132d9f2920f /src/common/container.c | |
parent | 0dc8e284f8e08fa4ad9f56d5cbdeb8f9f02e99d6 (diff) | |
download | tor-6005e110b9c8c3c9cf0afdcccf83cdbdc834e3d4.tar.gz tor-6005e110b9c8c3c9cf0afdcccf83cdbdc834e3d4.zip |
whitespace fixes
svn:r5682
Diffstat (limited to 'src/common/container.c')
-rw-r--r-- | src/common/container.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/container.c b/src/common/container.c index f3db56c6a0..afad890de8 100644 --- a/src/common/container.c +++ b/src/common/container.c @@ -228,6 +228,7 @@ smartlist_del(smartlist_t *sl, int idx) tor_assert(idx < sl->num_used); sl->list[idx] = sl->list[--sl->num_used]; } + /** Remove the <b>idx</b>th element of sl; if idx is not the last element, * moving all subsequent elements back one space. Return the old value * of the <b>idx</b>th element. @@ -242,6 +243,7 @@ smartlist_del_keeporder(smartlist_t *sl, int idx) if (idx < sl->num_used) memmove(sl->list+idx, sl->list+idx+1, sizeof(void*)*(sl->num_used-idx)); } + /** Insert the value <b>val</b> as the new <b>idx</b>th element of * <b>sl</b>, moving all items previously at <b>idx</b> or later * forward one space. |