aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-03-30 20:05:52 +0000
committerNick Mathewson <nickm@torproject.org>2004-03-30 20:05:52 +0000
commit96a86ef14d8b4f2377e19070ae930de730efd2f8 (patch)
tree779bf8db11c9b31a250d86880c161916450087a1 /src/common/util.h
parent0ba9ab5fb05ceb064a24e2db91e7a2f72cea2722 (diff)
downloadtor-96a86ef14d8b4f2377e19070ae930de730efd2f8.tar
tor-96a86ef14d8b4f2377e19070ae930de730efd2f8.tar.gz
Remove maximum-size field from smartlists
svn:r1397
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/util.h b/src/common/util.h
index 3907a0d94..9465a8f78 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -61,11 +61,10 @@ void set_uint32(char *cp, uint32_t v);
typedef struct {
void **list;
int num_used;
- int max;
int capacity;
} smartlist_t;
-smartlist_t *smartlist_create(int max_elements);
+smartlist_t *smartlist_create(int capacity);
void smartlist_free(smartlist_t *sl);
void smartlist_grow_capacity(smartlist_t *sl, int n);
void smartlist_add(smartlist_t *sl, void *element);