X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/7d8c555e92954b02d40c15702476fd48e55c4f94..23c0cdd2ad8b15defab56eca89a42c67cadd9a34:/src/zipmap.c 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;