From 025c96bf4f9573d65a3a62ee1f63038ebeae8ef8 Mon Sep 17 00:00:00 2001 From: brisk Date: Thu, 27 Mar 2014 18:36:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=95=B0=E6=8D=AE=E7=BB=93?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hash/hash.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/hash/hash.h b/src/hash/hash.h index 3f4df83..60fce05 100644 --- a/src/hash/hash.h +++ b/src/hash/hash.h @@ -6,22 +6,19 @@ #include #include -/*值链表数据结构*/ +/*值数据结构*/ typedef struct node { char *key - char *value; - struct node *next; + char **value; }CONF_VALUE; /* 键/值对数据结构 - * hash为使用的hash函数:0为第一个哈希算法 1:为第二个哈希算法 * len为当前结点个数 * next为冲突时的链表 */ typedef struct arg { - int hash; int len; CONF_VALUE *value;