aboutsummaryrefslogtreecommitdiff
path: root/src/common/container.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-06-17 18:22:35 +0000
committerNick Mathewson <nickm@torproject.org>2007-06-17 18:22:35 +0000
commit93f32db438cff63662761374f4a69b710f3d71d9 (patch)
treeffa15ba0ef9b46c065c22a8de1552414510e418b /src/common/container.c
parent99792df64585558ae51ec4b93f26ee42a07cd82c (diff)
downloadtor-93f32db438cff63662761374f4a69b710f3d71d9.tar.gz
tor-93f32db438cff63662761374f4a69b710f3d71d9.zip
r13476@catbus: nickm | 2007-06-17 14:04:41 -0400
Build with fewer compiler warnings on Sun. (This and previous Sun patches are thanks to the tremendously handy services of unix-center.net.) svn:r10644
Diffstat (limited to 'src/common/container.c')
-rw-r--r--src/common/container.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/common/container.c b/src/common/container.c
index 9333ccdb16..f903a28300 100644
--- a/src/common/container.c
+++ b/src/common/container.c
@@ -663,10 +663,10 @@ smartlist_uniq_digests(smartlist_t *sl)
} prefix ## entry_t; \
struct maptype { \
HT_HEAD(prefix ## impl, prefix ## entry_t) head; \
- };
+ }
-DEFINE_MAP_STRUCTS(strmap_t, char *key, strmap_);
-DEFINE_MAP_STRUCTS(digestmap_t, char key[DIGEST_LEN], digestmap_);
+DEFINE_MAP_STRUCTS(strmap_t, char *key, strmap_)
+DEFINE_MAP_STRUCTS(digestmap_t, char key[DIGEST_LEN], digestmap_)
/** Helper: compare strmap_entry_t objects by key value. */
static INLINE int
@@ -698,14 +698,14 @@ digestmap_entry_hash(const digestmap_entry_t *a)
}
HT_PROTOTYPE(strmap_impl, strmap_entry_t, node, strmap_entry_hash,
- strmap_entries_eq);
+ strmap_entries_eq)
HT_GENERATE(strmap_impl, strmap_entry_t, node, strmap_entry_hash,
- strmap_entries_eq, 0.6, malloc, realloc, free);
+ strmap_entries_eq, 0.6, malloc, realloc, free)
HT_PROTOTYPE(digestmap_impl, digestmap_entry_t, node, digestmap_entry_hash,
- digestmap_entries_eq);
+ digestmap_entries_eq)
HT_GENERATE(digestmap_impl, digestmap_entry_t, node, digestmap_entry_hash,
- digestmap_entries_eq, 0.6, malloc, realloc, free);
+ digestmap_entries_eq, 0.6, malloc, realloc, free)
/** Constructor to create a new empty map from strings to void*'s.
*/