summaryrefslogtreecommitdiff
path: root/qdict.h
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2010-06-07 15:45:22 -0300
committerLuiz Capitulino <lcapitulino@redhat.com>2010-07-01 14:27:13 -0300
commit3135a0b0c4bb6045c57780bcbb31190f144d7ad3 (patch)
tree0542ddab81c4ae64892bf0add346a768bbab5a2e /qdict.h
parent59bc28a52954659f8bfdca7de123841e46ea2a53 (diff)
downloadqemu-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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/qdict.h b/qdict.h
index 72ea563d19..dcd2b29780 100644
--- a/qdict.h
+++ b/qdict.h
@@ -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 */