removed a number of stupid compilation warnings on Linux

This commit is contained in:
antirez
2010-11-02 11:15:09 +01:00
parent 92e282288f
commit 10c12171cc
4 changed files with 21 additions and 18 deletions

View File

@ -374,14 +374,14 @@ void zipmapRepr(unsigned char *p) {
l = zipmapDecodeLength(p);
printf("{key %u}",l);
p += zipmapEncodeLength(NULL,l);
fwrite(p,l,1,stdout);
if (l != 0 && fwrite(p,l,1,stdout) == 0) perror("fwrite");
p += l;
l = zipmapDecodeLength(p);
printf("{value %u}",l);
p += zipmapEncodeLength(NULL,l);
e = *p++;
fwrite(p,l,1,stdout);
if (l != 0 && fwrite(p,l,1,stdout) == 0) perror("fwrite");
p += l+e;
if (e) {
printf("[");