summaryrefslogtreecommitdiff
path: root/src/common/container.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-09-28 13:29:31 -0400
committerNick Mathewson <nickm@torproject.org>2010-10-01 18:14:26 -0400
commitfe309e7ad633bee36e175e600f0b9a0ac18cf981 (patch)
tree5e4bc848a6c65ec4eb91f8994ab9980a5ec20fb0 /src/common/container.c
parent80b515b85fdfbcd645cb1920e398b3f2f6e85a31 (diff)
downloadtor-fe309e7ad633bee36e175e600f0b9a0ac18cf981.tar.gz
tor-fe309e7ad633bee36e175e600f0b9a0ac18cf981.zip
Implement a basic node and nodelist type
The node_t type is meant to serve two key functions: 1) Abstracting difference between routerinfo_t and microdesc_t so that clients can use microdesc_t instead of routerinfo_t. 2) Being a central place to hold mutable state about nodes formerly held in routerstatus_t and routerinfo_t. This patch implements a nodelist type that holds a node for every router that we would consider using.
Diffstat (limited to 'src/common/container.c')
-rw-r--r--src/common/container.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/common/container.c b/src/common/container.c
index 72f3470344..0a95f33aad 100644
--- a/src/common/container.c
+++ b/src/common/container.c
@@ -268,7 +268,6 @@ smartlist_subtract(smartlist_t *sl1, const smartlist_t *sl2)
/** Remove the <b>idx</b>th element of sl; if idx is not the last
* element, swap the last element of sl into the <b>idx</b>th space.
- * Return the old value of the <b>idx</b>th element.
*/
void
smartlist_del(smartlist_t *sl, int idx)