X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/336c82d58379205b789f3ca9cefc7c2090808fb8..1858da2faae3b6a8becf4f7eef3f712d6e4b986b:/src/zipmap.c?ds=sidebyside diff --git a/src/zipmap.c b/src/zipmap.c index 9f0fc718..1f11fd42 100644 --- a/src/zipmap.c +++ b/src/zipmap.c @@ -80,7 +80,7 @@ #include #include #include "zmalloc.h" -#include "endian.h" +#include "endianconv.h" #define ZIPMAP_BIGLEN 254 #define ZIPMAP_END 255 @@ -298,7 +298,7 @@ unsigned char *zipmapDel(unsigned char *zm, unsigned char *key, unsigned int kle return zm; } -/* Call it before to iterate trought elements via zipmapNext() */ +/* Call before iterating through elements via zipmapNext() */ unsigned char *zipmapRewind(unsigned char *zm) { return zm+1; } @@ -452,7 +452,7 @@ int main(void) { vlen, vlen, value); } } - printf("\nIterate trought elements:\n"); + printf("\nIterate through elements:\n"); { unsigned char *i = zipmapRewind(zm); unsigned char *key, *value;