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 | 3135a0b0c4bb6045c57780bcbb31190f144d7ad3 (patch) | |
tree | 0542ddab81c4ae64892bf0add346a768bbab5a2e /qdict.h | |
parent | 59bc28a52954659f8bfdca7de123841e46ea2a53 (diff) | |
download | qemu-3135a0b0c4bb6045c57780bcbb31190f144d7ad3.tar.gz qemu-3135a0b0c4bb6045c57780bcbb31190f144d7ad3.tar.bz2 qemu-3135a0b0c4bb6045c57780bcbb31190f144d7ad3.zip |
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 */ |