summaryrefslogtreecommitdiff
path: root/src/common/container.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-11-12 21:14:06 +0000
committerNick Mathewson <nickm@torproject.org>2004-11-12 21:14:06 +0000
commita8f9ba91db3d326b9b6ff67c35e7b52ae11d08c4 (patch)
tree8ff5ebd3c6f215674d87c5792610046dd249156e /src/common/container.h
parent238a895e69ff9280555a922ccc2ad0ca55da2591 (diff)
downloadtor-a8f9ba91db3d326b9b6ff67c35e7b52ae11d08c4.tar.gz
tor-a8f9ba91db3d326b9b6ff67c35e7b52ae11d08c4.zip
Nobody was using the return values from smartlist_(set|del|del_keeporder), so remove them.
svn:r2823
Diffstat (limited to 'src/common/container.h')
-rw-r--r--src/common/container.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/common/container.h b/src/common/container.h
index bc000cef46..fbfe93d561 100644
--- a/src/common/container.h
+++ b/src/common/container.h
@@ -36,14 +36,15 @@ void smartlist_subtract(smartlist_t *sl1, const smartlist_t *sl2);
/* smartlist_choose() is defined in crypto.[ch] */
#ifndef FAST_SMARTLIST
void *smartlist_get(const smartlist_t *sl, int idx);
+void smartlist_set(smartlist_t *sl, int idx, void *val);
int smartlist_len(const smartlist_t *sl);
#else
#define smartlist_get(sl,idx) ((sl)->list[(idx)])
+#define smartlist_set(sl,idx,val) ((sl)->list[(idx)] = val)
#define smartlist_len(sl) ((sl)->num_used)
#endif
-void *smartlist_set(smartlist_t *sl, int idx, void *val);
-void *smartlist_del(smartlist_t *sl, int idx);
-void *smartlist_del_keeporder(smartlist_t *sl, int idx);
+void smartlist_del(smartlist_t *sl, int idx);
+void smartlist_del_keeporder(smartlist_t *sl, int idx);
void smartlist_insert(smartlist_t *sl, int idx, void *val);
#define SPLIT_SKIP_SPACE 0x01