aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-12-14 21:10:06 +0000
committerNick Mathewson <nickm@torproject.org>2005-12-14 21:10:06 +0000
commit7e6a41af93c15173f0e3fbd83a6bd95865c3a289 (patch)
tree49a044fa582501bd34bd02c60592e39bccd34f08
parentb881742d871aaeb329f966eb0c1b697f5a436de1 (diff)
downloadtor-7e6a41af93c15173f0e3fbd83a6bd95865c3a289.tar
tor-7e6a41af93c15173f0e3fbd83a6bd95865c3a289.tar.gz
Make hashtables use a little less space on 64-bit architectures.
svn:r5585
-rw-r--r--src/common/container.c2
-rw-r--r--src/common/ht.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/common/container.c b/src/common/container.c
index cefaad3ce..f3db56c6a 100644
--- a/src/common/container.c
+++ b/src/common/container.c
@@ -438,8 +438,8 @@ smartlist_sort_strings(smartlist_t *sl)
#define DEFINE_MAP_STRUCTS(maptype, keydecl, prefix) \
typedef struct prefix ## entry_t { \
HT_ENTRY(prefix ## entry_t) node; \
- keydecl; \
void *val; \
+ keydecl; \
} prefix ## entry_t; \
struct maptype { \
HT_HEAD(prefix ## impl, prefix ## entry_t) head; \
diff --git a/src/common/ht.h b/src/common/ht.h
index 479125c40..e50ada29c 100644
--- a/src/common/ht.h
+++ b/src/common/ht.h
@@ -11,10 +11,10 @@
#define HT_HEAD(name, type) \
struct name { \
- /* How long is the hash table? */ \
- unsigned hth_table_length; \
/* The hash table itself. */ \
struct type **hth_table; \
+ /* How long is the hash table? */ \
+ unsigned hth_table_length; \
/* How many elements does the table contain? */ \
unsigned hth_n_entries; \
/* How many elements will we allow in the table before resizing it? */ \