diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2010-06-07 15:45:22 -0300 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2010-07-01 14:27:13 -0300 |
commit | c8bc3cd72b4c530721d5be1bf9f599edb5d72160 (patch) | |
tree | 0542ddab81c4ae64892bf0add346a768bbab5a2e /qdict.h | |
parent | 83aba69ec05e17ff34708a5b7a3b719dac5c8fc0 (diff) | |
download | qemu-c8bc3cd72b4c530721d5be1bf9f599edb5d72160.zip qemu-c8bc3cd72b4c530721d5be1bf9f599edb5d72160.tar.gz qemu-c8bc3cd72b4c530721d5be1bf9f599edb5d72160.tar.bz2 |
QDict: Small terminology change
Let's call a 'hash' only what is returned by our hash function,
anything else is a 'bucket'.
This helps avoiding confusion with regard to how we traverse
our table.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'qdict.h')
-rw-r--r-- | qdict.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -18,7 +18,7 @@ #include "qemu-queue.h" #include <stdint.h> -#define QDICT_HASH_SIZE 512 +#define QDICT_BUCKET_MAX 512 typedef struct QDictEntry { char *key; @@ -29,7 +29,7 @@ typedef struct QDictEntry { typedef struct QDict { QObject_HEAD; size_t size; - QLIST_HEAD(,QDictEntry) table[QDICT_HASH_SIZE]; + QLIST_HEAD(,QDictEntry) table[QDICT_BUCKET_MAX]; } QDict; /* Object API */ |