From 0d470b4c4321194eeb076a81ca68f938f3e658d5 Mon Sep 17 00:00:00 2001 From: Pierre Chapuis Date: Mon, 28 Jan 2013 11:07:17 +0100 Subject: [PATCH] fix comments forgotten in #285 (zipmap -> ziplist) --- src/redis.c | 2 +- src/ziplist.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/redis.c b/src/redis.c index 0deffe72..61e9267b 100644 --- a/src/redis.c +++ b/src/redis.c @@ -537,7 +537,7 @@ dictType commandTableDictType = { NULL /* val destructor */ }; -/* Hash type hash table (note that small hashes are represented with zipmaps) */ +/* Hash type hash table (note that small hashes are represented with ziplists) */ dictType hashDictType = { dictEncObjHash, /* hash function */ NULL, /* key dup */ diff --git a/src/ziplist.c b/src/ziplist.c index d4ac4f9b..8a6b54a7 100644 --- a/src/ziplist.c +++ b/src/ziplist.c @@ -739,10 +739,10 @@ unsigned char *ziplistPrev(unsigned char *zl, unsigned char *p) { } } -/* Get entry pointer to by 'p' and store in either 'e' or 'v' depending +/* Get entry pointed to by 'p' and store in either 'e' or 'v' depending * on the encoding of the entry. 'e' is always set to NULL to be able * to find out whether the string pointer or the integer value was set. - * Return 0 if 'p' points to the end of the zipmap, 1 otherwise. */ + * Return 0 if 'p' points to the end of the ziplist, 1 otherwise. */ unsigned int ziplistGet(unsigned char *p, unsigned char **sstr, unsigned int *slen, long long *sval) { zlentry entry; if (p == NULL || p[0] == ZIP_END) return 0; -- GitLab