diff options
author | Andrew Morton <akpm@osdl.org> | 2003-09-09 10:20:58 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-09-09 10:20:58 -0700 |
commit | 2816017743e689adec72c1d24541170ef4979409 (patch) | |
tree | 0a834d544f404c110c3180739b527e2e061c4483 /lib | |
parent | fa5349be5301a8a0d25668cb164e9dffbf9003b7 (diff) | |
download | history-2816017743e689adec72c1d24541170ef4979409.tar.gz |
[PATCH] tidy up lib/inflate.c error messages
From: Andre McCurdy <armcc2000@yahoo.com>
There is some inconsistency within lib/inflate.c and its users about
whether the error message text or the error() function should provide
the '\n'.
This patch tries to make everyone consistent - by removing the
newline from all message texts, and adding one to the only error()
function which did not provide it (in init/do_mounts_rd.c).
Diffstat (limited to 'lib')
-rw-r--r-- | lib/inflate.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/inflate.c b/lib/inflate.c index 4d48e61c2490ae..41227073442b1c 100644 --- a/lib/inflate.c +++ b/lib/inflate.c @@ -871,7 +871,7 @@ DEBG("dyn5a "); { DEBG("dyn5b "); if (i == 1) { - error(" incomplete literal tree\n"); + error("incomplete literal tree"); huft_free(tl); } return i; /* incomplete code set */ @@ -882,7 +882,7 @@ DEBG("dyn5c "); { DEBG("dyn5d "); if (i == 1) { - error(" incomplete distance tree\n"); + error("incomplete distance tree"); #ifdef PKZIP_BUG_WORKAROUND i = 0; } @@ -1097,15 +1097,15 @@ static int gunzip(void) flags = (uch)get_byte(); if ((flags & ENCRYPTED) != 0) { - error("Input is encrypted\n"); + error("Input is encrypted"); return -1; } if ((flags & CONTINUATION) != 0) { - error("Multi part input\n"); + error("Multi part input"); return -1; } if ((flags & RESERVED) != 0) { - error("Input has invalid flags\n"); + error("Input has invalid flags"); return -1; } (ulg)get_byte(); /* Get timestamp */ |