diff options
author | Tim Riker <tim@rikers.org> | 2006-01-25 00:08:53 +0000 |
---|---|---|
committer | Tim Riker <tim@rikers.org> | 2006-01-25 00:08:53 +0000 |
commit | c1ef7bdd8d002ae0889efcf883d0e1b7faa938d4 (patch) | |
tree | 5f329b7d0c7f20ecced0dc7581a9ba6dc720d965 /networking/wget.c | |
parent | f64ff682a3d58dbb627e760e6fe1ec21d9ccdf61 (diff) | |
download | busybox-w32-c1ef7bdd8d002ae0889efcf883d0e1b7faa938d4.tar.gz busybox-w32-c1ef7bdd8d002ae0889efcf883d0e1b7faa938d4.tar.bz2 busybox-w32-c1ef7bdd8d002ae0889efcf883d0e1b7faa938d4.zip |
just whitespace
Diffstat (limited to 'networking/wget.c')
-rw-r--r-- | networking/wget.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/networking/wget.c b/networking/wget.c index 29f5d45c3..9c7ed9f1d 100644 --- a/networking/wget.c +++ b/networking/wget.c | |||
@@ -118,22 +118,22 @@ static char *safe_fgets(char *s, int size, FILE *stream) | |||
118 | */ | 118 | */ |
119 | static char *base64enc(unsigned char *p, char *buf, int len) { | 119 | static char *base64enc(unsigned char *p, char *buf, int len) { |
120 | 120 | ||
121 | char al[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" | 121 | char al[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" |
122 | "0123456789+/"; | 122 | "0123456789+/"; |
123 | char *s = buf; | 123 | char *s = buf; |
124 | 124 | ||
125 | while(*p) { | 125 | while(*p) { |
126 | if (s >= buf+len-4) | 126 | if (s >= buf+len-4) |
127 | bb_error_msg_and_die("buffer overflow"); | 127 | bb_error_msg_and_die("buffer overflow"); |
128 | *(s++) = al[(*p >> 2) & 0x3F]; | 128 | *(s++) = al[(*p >> 2) & 0x3F]; |
129 | *(s++) = al[((*p << 4) & 0x30) | ((*(p+1) >> 4) & 0x0F)]; | 129 | *(s++) = al[((*p << 4) & 0x30) | ((*(p+1) >> 4) & 0x0F)]; |
130 | *s = *(s+1) = '='; | 130 | *s = *(s+1) = '='; |
131 | *(s+2) = 0; | 131 | *(s+2) = 0; |
132 | if (! *(++p)) break; | 132 | if (! *(++p)) break; |
133 | *(s++) = al[((*p << 2) & 0x3C) | ((*(p+1) >> 6) & 0x03)]; | 133 | *(s++) = al[((*p << 2) & 0x3C) | ((*(p+1) >> 6) & 0x03)]; |
134 | if (! *(++p)) break; | 134 | if (! *(++p)) break; |
135 | *(s++) = al[*(p++) & 0x3F]; | 135 | *(s++) = al[*(p++) & 0x3F]; |
136 | } | 136 | } |
137 | 137 | ||
138 | return buf; | 138 | return buf; |
139 | } | 139 | } |
@@ -190,8 +190,8 @@ int wget_main(int argc, char **argv) | |||
190 | */ | 190 | */ |
191 | bb_opt_complementally = "-1:\203::"; | 191 | bb_opt_complementally = "-1:\203::"; |
192 | bb_applet_long_options = wget_long_options; | 192 | bb_applet_long_options = wget_long_options; |
193 | opt = bb_getopt_ulflags(argc, argv, "cq\213O:\203:P:Y:", | 193 | opt = bb_getopt_ulflags(argc, argv, "cq\213O:\203:P:Y:", |
194 | &fname_out, &headers_llist, | 194 | &fname_out, &headers_llist, |
195 | &dir_prefix, &proxy_flag); | 195 | &dir_prefix, &proxy_flag); |
196 | if (opt & WGET_OPT_CONTINUE) { | 196 | if (opt & WGET_OPT_CONTINUE) { |
197 | ++do_continue; | 197 | ++do_continue; |
@@ -217,7 +217,7 @@ int wget_main(int argc, char **argv) | |||
217 | headers_llist = headers_llist->link; | 217 | headers_llist = headers_llist->link; |
218 | } | 218 | } |
219 | } | 219 | } |
220 | 220 | ||
221 | parse_url(argv[optind], &target); | 221 | parse_url(argv[optind], &target); |
222 | server.host = target.host; | 222 | server.host = target.host; |
223 | server.port = target.port; | 223 | server.port = target.port; |
@@ -347,8 +347,8 @@ int wget_main(int argc, char **argv) | |||
347 | fprintf(sfp,"Connection: close\r\n\r\n"); | 347 | fprintf(sfp,"Connection: close\r\n\r\n"); |
348 | 348 | ||
349 | /* | 349 | /* |
350 | * Retrieve HTTP response line and check for "200" status code. | 350 | * Retrieve HTTP response line and check for "200" status code. |
351 | */ | 351 | */ |
352 | read_response: | 352 | read_response: |
353 | if (fgets(buf, sizeof(buf), sfp) == NULL) | 353 | if (fgets(buf, sizeof(buf), sfp) == NULL) |
354 | close_delete_and_die("no response from server"); | 354 | close_delete_and_die("no response from server"); |