aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-01-29 13:49:41 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-01-29 13:49:41 +0000
commit107413c02180b1bc1ea1c10f34f7c172fbe275db (patch)
tree707592609c05fc961486f124dfd8553ba9d55e0f /src
parentd7579087f20948375132f67d68a985a5645c346e (diff)
nonsence change to make -Wunreachable-code get happy
Diffstat (limited to 'src')
-rw-r--r--src/mkhelp.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mkhelp.pl b/src/mkhelp.pl
index 75828f0e8..3fef2bb3b 100644
--- a/src/mkhelp.pl
+++ b/src/mkhelp.pl
@@ -163,7 +163,7 @@ void hugehelp(void)
if (inflateInit2(&z, -MAX_WBITS) != Z_OK)
return;
- for (;;) {
+ while(1) {
z.avail_out = (int)sizeof(buf);
z.next_out = buf;
status = inflate(&z, Z_SYNC_FLUSH);
@@ -171,7 +171,8 @@ void hugehelp(void)
fwrite(buf, sizeof(buf) - z.avail_out, 1, stdout);
if (status == Z_STREAM_END)
break;
- } else
+ }
+ else
break; /* Error */
}
inflateEnd(&z);