summaryrefslogtreecommitdiff
path: root/example.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:20:15 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:20:15 -0700
commitc34c1fcbb19852ca35216ad66276f4f86af3fc22 (patch)
tree4bd0972d6c682e474725eca372f6551d539f8768 /example.c
parent02b6cf579f02ec78c052735020a5d3c5723ed641 (diff)
zlib 1.1.2
Diffstat (limited to 'example.c')
-rw-r--r--example.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/example.c b/example.c
index 5b3404a..073ce76 100644
--- a/example.c
+++ b/example.c
@@ -71,7 +71,7 @@ void test_compress(compr, comprLen, uncompr, uncomprLen)
fprintf(stderr, "bad uncompress\n");
exit(1);
} else {
- printf("uncompress(): %s\n", uncompr);
+ printf("uncompress(): %s\n", (char *)uncompr);
}
}
@@ -121,13 +121,13 @@ void test_gzio(out, in, uncompr, uncomprLen)
fprintf(stderr, "bad gzread: %s\n", (char*)uncompr);
exit(1);
} else {
- printf("gzread(): %s\n", uncompr);
+ printf("gzread(): %s\n", (char *)uncompr);
}
pos = gzseek(file, -8L, SEEK_CUR);
if (pos != 6 || gztell(file) != pos) {
fprintf(stderr, "gzseek error, pos=%ld, gztell=%ld\n",
- pos, gztell(file));
+ (long)pos, (long)gztell(file));
exit(1);
}
@@ -146,7 +146,7 @@ void test_gzio(out, in, uncompr, uncomprLen)
fprintf(stderr, "bad gzgets after gzseek\n");
exit(1);
} else {
- printf("gzgets() after gzseek: %s\n", uncompr);
+ printf("gzgets() after gzseek: %s\n", (char *)uncompr);
}
gzclose(file);
@@ -227,7 +227,7 @@ void test_inflate(compr, comprLen, uncompr, uncomprLen)
fprintf(stderr, "bad inflate\n");
exit(1);
} else {
- printf("inflate(): %s\n", uncompr);
+ printf("inflate(): %s\n", (char *)uncompr);
}
}
@@ -406,7 +406,7 @@ void test_sync(compr, comprLen, uncompr, uncomprLen)
err = inflateEnd(&d_stream);
CHECK_ERR(err, "inflateEnd");
- printf("after inflateSync(): hel%s\n", uncompr);
+ printf("after inflateSync(): hel%s\n", (char *)uncompr);
}
/* ===========================================================================
@@ -492,7 +492,7 @@ void test_dict_inflate(compr, comprLen, uncompr, uncomprLen)
fprintf(stderr, "bad inflate with dict\n");
exit(1);
} else {
- printf("inflate with dictionary: %s\n", uncompr);
+ printf("inflate with dictionary: %s\n", (char *)uncompr);
}
}