summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenis Vlasenko2006-11-10 23:25:53 +0000
committerDenis Vlasenko2006-11-10 23:25:53 +0000
commit067e3f031a2107c69d287d89b9543fbfe5c0a571 (patch)
tree35edda4508915e2b454d0c0ec48cd548deccd744 /libbb
parent07159f0f0e2188b1ce3bf7bc6b282f08986fd5ee (diff)
downloadbusybox-067e3f031a2107c69d287d89b9543fbfe5c0a571.zip
busybox-067e3f031a2107c69d287d89b9543fbfe5c0a571.tar.gz
wget: fix error message.
Bad: wget http://127.0.0.1:81/fgdg/Makefile Connecting to 127.0.0.1[127.0.0.1]:81 : HTTP/1.0 404 Not Foundror 404 Not Found Good: wget http://127.0.0.1:81/fgdg/Makefile Connecting to 127.0.0.1[127.0.0.1]:81 get: server returned error: HTTP/1.0 404 Not Found nslookup: fix my mistake applets: make Bernhard Fischer <rep.nop@aon.at> happy :)
Diffstat (limited to 'libbb')
-rw-r--r--libbb/chomp.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libbb/chomp.c b/libbb/chomp.c
index 6165b83..eab7707 100644
--- a/libbb/chomp.c
+++ b/libbb/chomp.c
@@ -8,15 +8,12 @@
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
-#include <stdio.h>
-#include <string.h>
#include "libbb.h"
-
void chomp(char *s)
{
char *lc = last_char_is(s, '\n');
- if(lc)
+ if (lc)
*lc = 0;
}