summaryrefslogtreecommitdiff
path: root/example.c
diff options
context:
space:
mode:
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)
71 fprintf(stderr, "bad uncompress\n"); 71 fprintf(stderr, "bad uncompress\n");
72 exit(1); 72 exit(1);
73 } else { 73 } else {
74 printf("uncompress(): %s\n", uncompr); 74 printf("uncompress(): %s\n", (char *)uncompr);
75 } 75 }
76} 76}
77 77
@@ -121,13 +121,13 @@ void test_gzio(out, in, uncompr, uncomprLen)
121 fprintf(stderr, "bad gzread: %s\n", (char*)uncompr); 121 fprintf(stderr, "bad gzread: %s\n", (char*)uncompr);
122 exit(1); 122 exit(1);
123 } else { 123 } else {
124 printf("gzread(): %s\n", uncompr); 124 printf("gzread(): %s\n", (char *)uncompr);
125 } 125 }
126 126
127 pos = gzseek(file, -8L, SEEK_CUR); 127 pos = gzseek(file, -8L, SEEK_CUR);
128 if (pos != 6 || gztell(file) != pos) { 128 if (pos != 6 || gztell(file) != pos) {
129 fprintf(stderr, "gzseek error, pos=%ld, gztell=%ld\n", 129 fprintf(stderr, "gzseek error, pos=%ld, gztell=%ld\n",
130 pos, gztell(file)); 130 (long)pos, (long)gztell(file));
131 exit(1); 131 exit(1);
132 } 132 }
133 133
@@ -146,7 +146,7 @@ void test_gzio(out, in, uncompr, uncomprLen)
146 fprintf(stderr, "bad gzgets after gzseek\n"); 146 fprintf(stderr, "bad gzgets after gzseek\n");
147 exit(1); 147 exit(1);
148 } else { 148 } else {
149 printf("gzgets() after gzseek: %s\n", uncompr); 149 printf("gzgets() after gzseek: %s\n", (char *)uncompr);
150 } 150 }
151 151
152 gzclose(file); 152 gzclose(file);
@@ -227,7 +227,7 @@ void test_inflate(compr, comprLen, uncompr, uncomprLen)
227 fprintf(stderr, "bad inflate\n"); 227 fprintf(stderr, "bad inflate\n");
228 exit(1); 228 exit(1);
229 } else { 229 } else {
230 printf("inflate(): %s\n", uncompr); 230 printf("inflate(): %s\n", (char *)uncompr);
231 } 231 }
232} 232}
233 233
@@ -406,7 +406,7 @@ void test_sync(compr, comprLen, uncompr, uncomprLen)
406 err = inflateEnd(&d_stream); 406 err = inflateEnd(&d_stream);
407 CHECK_ERR(err, "inflateEnd"); 407 CHECK_ERR(err, "inflateEnd");
408 408
409 printf("after inflateSync(): hel%s\n", uncompr); 409 printf("after inflateSync(): hel%s\n", (char *)uncompr);
410} 410}
411 411
412/* =========================================================================== 412/* ===========================================================================
@@ -492,7 +492,7 @@ void test_dict_inflate(compr, comprLen, uncompr, uncomprLen)
492 fprintf(stderr, "bad inflate with dict\n"); 492 fprintf(stderr, "bad inflate with dict\n");
493 exit(1); 493 exit(1);
494 } else { 494 } else {
495 printf("inflate with dictionary: %s\n", uncompr); 495 printf("inflate with dictionary: %s\n", (char *)uncompr);
496 } 496 }
497} 497}
498 498