summaryrefslogtreecommitdiff
path: root/src/ziplist.c
diff options
context:
space:
mode:
authorXiaojie Zhang <alghak@gmail.com>2014-01-23 21:52:03 +0800
committerMatt Stancliff <matt@genges.com>2014-09-29 06:49:08 -0400
commit9aba616866a113174366f53b6354f23c80766c37 (patch)
treeafe1a06dd1947a5538caa1be2ec03b929da08230 /src/ziplist.c
parentcf737ff1c86a1c8354427bf7bc1c8ad6b47627c6 (diff)
downloadredis-9aba616866a113174366f53b6354f23c80766c37.tar.gz
Fix comment inconsistencies in ziplist.c
Closes #1523
Diffstat (limited to 'src/ziplist.c')
-rw-r--r--src/ziplist.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ziplist.c b/src/ziplist.c
index 20c535927..64a22adfc 100644
--- a/src/ziplist.c
+++ b/src/ziplist.c
@@ -739,8 +739,8 @@ unsigned char *ziplistPrev(unsigned char *zl, unsigned char *p) {
}
}
-/* 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
+/* Get entry pointed to by 'p' and store in either '*sstr' or 'sval' depending
+ * on the encoding of the entry. '*sstr' 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 ziplist, 1 otherwise. */
unsigned int ziplistGet(unsigned char *p, unsigned char **sstr, unsigned int *slen, long long *sval) {
@@ -788,7 +788,8 @@ unsigned char *ziplistDeleteRange(unsigned char *zl, unsigned int index, unsigne
return (p == NULL) ? zl : __ziplistDelete(zl,p,num);
}
-/* Compare entry pointer to by 'p' with 'entry'. Return 1 if equal. */
+/* Compare entry pointer to by 'p' with 'sstr' of length 'slen'. */
+/* Return 1 if equal. */
unsigned int ziplistCompare(unsigned char *p, unsigned char *sstr, unsigned int slen) {
zlentry entry;
unsigned char sencoding;