summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Chapuis <catwell@archlinux.us>2013-01-28 11:07:17 +0100
committerantirez <antirez@gmail.com>2013-02-11 11:47:10 +0100
commitc7b9a57fb2e50a9fc6d8734cb13ef7f48451fd2c (patch)
tree415281361da794294f9297bf21275f7da234ba5d
parent63ad0e88672cfcd1735119448cf8c5bf30c32956 (diff)
downloadredis-c7b9a57fb2e50a9fc6d8734cb13ef7f48451fd2c.tar.gz
fix comments forgotten in #285 (zipmap -> ziplist)
-rw-r--r--src/redis.c2
-rw-r--r--src/ziplist.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/redis.c b/src/redis.c
index fe2610858..dc37363a7 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 d4ac4f9b4..8a6b54a7c 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;