diff --git a/contrib/minizip/minizip.c b/contrib/minizip/minizip.c index 7f937aa5b..5896e6f79 100644 --- a/contrib/minizip/minizip.c +++ b/contrib/minizip/minizip.c @@ -277,7 +277,7 @@ int main(argc,argv) while ((*p)!='\0') { - char c=*(p++);; + char c=*(p++); if ((c=='o') || (c=='O')) opt_overwrite = 1; if ((c=='a') || (c=='A')) diff --git a/examples/gzjoin.c b/examples/gzjoin.c index 89e809844..d7cf21bb7 100644 --- a/examples/gzjoin.c +++ b/examples/gzjoin.c @@ -63,11 +63,10 @@ #define local static /* exit with an error (return a value to allow use in an expression) */ -local int bail(char *why1, char *why2) +local void bail(char *why1, char *why2) { fprintf(stderr, "gzjoin error: %s%s, output incomplete\n", why1, why2); exit(1); - return 0; } /* -- simple buffered file input with access to the buffer -- */ diff --git a/examples/gznorm.c b/examples/gznorm.c index 68e0a0f29..40b75d0b2 100644 --- a/examples/gznorm.c +++ b/examples/gznorm.c @@ -83,7 +83,7 @@ local char *aprintf(char *fmt, ...) { // and assures that gzip_normalize applied a second time will not change the // input. The pad bits after stored block headers and after the final deflate // block are all forced to zeros. -local int gzip_normalize(FILE *in, FILE *out, char **err) { +local void gzip_normalize(FILE *in, FILE *out, char **err) { // initialize the inflate engine to process a gzip member z_stream strm; strm.zalloc = Z_NULL; @@ -451,7 +451,6 @@ local int gzip_normalize(FILE *in, FILE *out, char **err) { // All good! *err = NULL; - return 0; } // Normalize the gzip stream on stdin, writing the result to stdout. @@ -462,9 +461,8 @@ int main(void) { // Normalize from stdin to stdout, returning 1 on error, 0 if ok. char *err; - int ret = gzip_normalize(stdin, stdout, &err); - if (ret) - fprintf(stderr, "gznorm error: %s\n", err); + gzip_normalize(stdin, stdout, &err); free(err); - return ret; + + return 0; }