diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-05-19 20:17:37 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-05-19 20:17:37 +0000 |
commit | 5f58bee0b0d39ef59d99ece2b044e4c20a577889 (patch) | |
tree | ad5f0ba5503f45b979125e92a10eba08bc4814b6 /src/common/container.h | |
parent | 6f8866a817ad96494d84d3d05b68ee3b0b72545f (diff) | |
download | tor-5f58bee0b0d39ef59d99ece2b044e4c20a577889.tar tor-5f58bee0b0d39ef59d99ece2b044e4c20a577889.tar.gz |
r12812@catbus: nickm | 2007-05-19 16:17:36 -0400
Fix compilation with -O0; add unit tests for swap and shuffle.
svn:r10223
Diffstat (limited to 'src/common/container.h')
-rw-r--r-- | src/common/container.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/container.h b/src/common/container.h index 5da0fbc85..280c1a8c7 100644 --- a/src/common/container.h +++ b/src/common/container.h @@ -78,9 +78,9 @@ extern INLINE void smartlist_set(smartlist_t *sl, int idx, void *val) { #define smartlist_set(sl, idx, val) ((sl)->list[idx] = (val)) #endif -void smartlist_swap(smartlist_t *sl, int idx1, int idx2); +// void smartlist_swap(smartlist_t *sl, int idx1, int idx2); /**DOCDOC*/ -extern INLINE void smartlist_swap(smartlist_t *sl, int idx1, int idx2) +static INLINE void smartlist_swap(smartlist_t *sl, int idx1, int idx2) { if (idx1 != idx2) { void *elt = smartlist_get(sl, idx1); |