summaryrefslogtreecommitdiff
path: root/src/common/container.h
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2007-07-02 17:50:57 +0000
committerPeter Palfrader <peter@palfrader.org>2007-07-02 17:50:57 +0000
commitf274c1413eb575899e48d26f4fcb5d70445f1ffb (patch)
treee9cd5e98766991a46c3b95408729f7fc3e7abe80 /src/common/container.h
parentadff891463aa24b831ddd20c08068cf617007a65 (diff)
downloadtor-f274c1413eb575899e48d26f4fcb5d70445f1ffb.tar.gz
tor-f274c1413eb575899e48d26f4fcb5d70445f1ffb.zip
Make it build with -O0 as well
svn:r10722
Diffstat (limited to 'src/common/container.h')
-rw-r--r--src/common/container.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/container.h b/src/common/container.h
index ac213af212..db5967208a 100644
--- a/src/common/container.h
+++ b/src/common/container.h
@@ -55,21 +55,21 @@ void smartlist_subtract(smartlist_t *sl1, const smartlist_t *sl2);
#ifdef DEBUG_SMARTLIST
/** Return the number of items in sl.
*/
-extern INLINE int smartlist_len(const smartlist_t *sl) ATTR_PURE;
-extern INLINE int smartlist_len(const smartlist_t *sl) {
+static INLINE int smartlist_len(const smartlist_t *sl) ATTR_PURE;
+static INLINE int smartlist_len(const smartlist_t *sl) {
tor_assert(sl);
return (sl)->num_used;
}
/** Return the <b>idx</b>th element of sl.
*/
-extern INLINE void *smartlist_get(const smartlist_t *sl, int idx) ATTR_PURE;
-extern INLINE void *smartlist_get(const smartlist_t *sl, int idx) {
+static INLINE void *smartlist_get(const smartlist_t *sl, int idx) ATTR_PURE;
+static INLINE void *smartlist_get(const smartlist_t *sl, int idx) {
tor_assert(sl);
tor_assert(idx>=0);
tor_assert(sl->num_used > idx);
return sl->list[idx];
}
-extern INLINE void smartlist_set(smartlist_t *sl, int idx, void *val) {
+static INLINE void smartlist_set(smartlist_t *sl, int idx, void *val) {
tor_assert(sl);
tor_assert(idx>=0);
tor_assert(sl->num_used > idx);