diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-12-14 21:10:06 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-12-14 21:10:06 +0000 |
commit | 7e6a41af93c15173f0e3fbd83a6bd95865c3a289 (patch) | |
tree | 49a044fa582501bd34bd02c60592e39bccd34f08 /src | |
parent | b881742d871aaeb329f966eb0c1b697f5a436de1 (diff) | |
download | tor-7e6a41af93c15173f0e3fbd83a6bd95865c3a289.tar.gz tor-7e6a41af93c15173f0e3fbd83a6bd95865c3a289.zip |
Make hashtables use a little less space on 64-bit architectures.
svn:r5585
Diffstat (limited to 'src')
-rw-r--r-- | src/common/container.c | 2 | ||||
-rw-r--r-- | src/common/ht.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/common/container.c b/src/common/container.c index cefaad3cef..f3db56c6a0 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 479125c406..e50ada29c5 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? */ \ |