From c8bc3cd72b4c530721d5be1bf9f599edb5d72160 Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Mon, 7 Jun 2010 15:45:22 -0300 Subject: 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 --- qdict.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qdict.h') diff --git a/qdict.h b/qdict.h index 72ea563d1..dcd2b2978 100644 --- a/qdict.h +++ b/qdict.h @@ -18,7 +18,7 @@ #include "qemu-queue.h" #include -#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 */ -- cgit v1.2.3