summaryrefslogtreecommitdiff
path: root/networking/wget.c
diff options
context:
space:
mode:
authorRob Landley2006-06-13 16:44:26 +0000
committerRob Landley2006-06-13 16:44:26 +0000
commit76ef08c5e3349accfe6f10a97def7c7f7e85c0ad (patch)
treeb85c3ca6d12bd7d4a3bc26b48f39784f35b18e06 /networking/wget.c
parent7900b7b9b9956661d536223226c462c7f48fa40a (diff)
downloadbusybox-76ef08c5e3349accfe6f10a97def7c7f7e85c0ad.zip
busybox-76ef08c5e3349accfe6f10a97def7c7f7e85c0ad.tar.gz
Whitespace cleanup from Denis Vlasenko.
Diffstat (limited to 'networking/wget.c')
-rw-r--r--networking/wget.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/networking/wget.c b/networking/wget.c
index 4b5b319..506d329 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -120,11 +120,11 @@ static char *base64enc(unsigned char *p, char *buf, int len) {
char al[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
"0123456789+/";
- char *s = buf;
+ char *s = buf;
while(*p) {
- if (s >= buf+len-4)
- bb_error_msg_and_die("buffer overflow");
+ if (s >= buf+len-4)
+ bb_error_msg_and_die("buffer overflow");
*(s++) = al[(*p >> 2) & 0x3F];
*(s++) = al[((*p << 4) & 0x30) | ((*(p+1) >> 4) & 0x0F)];
*s = *(s+1) = '=';
@@ -135,7 +135,7 @@ static char *base64enc(unsigned char *p, char *buf, int len) {
*(s++) = al[*(p++) & 0x3F];
}
- return buf;
+ return buf;
}
#endif
@@ -153,7 +153,7 @@ static const struct option wget_long_options[] = {
{ "quiet", 0, NULL, 'q' },
{ "passive-ftp", 0, NULL, 139 },
{ "output-document", 1, NULL, 'O' },
- { "header", 1, NULL, 131 },
+ { "header", 1, NULL, 131 },
{ "directory-prefix",1, NULL, 'P' },
{ "proxy", 1, NULL, 'Y' },
{ 0, 0, 0, 0 }
@@ -358,9 +358,9 @@ read_response:
close_delete_and_die("no response from server");
for (s = buf ; *s != '\0' && !isspace(*s) ; ++s)
- ;
+ ;
for ( ; isspace(*s) ; ++s)
- ;
+ ;
switch (status = atoi(s)) {
case 0:
case 100:
@@ -402,7 +402,7 @@ read_response:
if (strcasecmp(s, "chunked") == 0) {
chunked = got_clen = 1;
} else {
- close_delete_and_die("server wants to do %s transfer encoding", s);
+ close_delete_and_die("server wants to do %s transfer encoding", s);
}
}
if (strcasecmp(buf, "location") == 0) {
@@ -494,7 +494,6 @@ read_response:
if (ftpcmd("RETR /", target.path, sfp, buf) > 150)
close_delete_and_die("RETR: %s", buf+4);
-
}