aboutsummaryrefslogtreecommitdiff
path: root/wget.c
diff options
context:
space:
mode:
Diffstat (limited to 'wget.c')
-rw-r--r--wget.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/wget.c b/wget.c
index 729c6fdc7..70f8d1b89 100644
--- a/wget.c
+++ b/wget.c
@@ -148,7 +148,7 @@ int wget_main(int argc, char **argv)
148#endif 148#endif
149 } 149 }
150 if (do_continue && !fname_out) 150 if (do_continue && !fname_out)
151 error_msg_and_die("cannot specify continue (-c) without a filename (-O)\n"); 151 error_msg_and_die("cannot specify continue (-c) without a filename (-O)");
152 152
153 153
154 /* 154 /*
@@ -200,7 +200,7 @@ int wget_main(int argc, char **argv)
200 */ 200 */
201 if (fgets(buf, sizeof(buf), sfp) == NULL) { 201 if (fgets(buf, sizeof(buf), sfp) == NULL) {
202 close_and_delete_outfile(output, fname_out, do_continue); 202 close_and_delete_outfile(output, fname_out, do_continue);
203 error_msg_and_die("no response from server\n"); 203 error_msg_and_die("no response from server");
204 } 204 }
205 for (s = buf ; *s != '\0' && !isspace(*s) ; ++s) 205 for (s = buf ; *s != '\0' && !isspace(*s) ; ++s)
206 ; 206 ;
@@ -230,7 +230,7 @@ int wget_main(int argc, char **argv)
230 } 230 }
231 if (strcasecmp(buf, "transfer-encoding") == 0) { 231 if (strcasecmp(buf, "transfer-encoding") == 0) {
232 close_and_delete_outfile(output, fname_out, do_continue); 232 close_and_delete_outfile(output, fname_out, do_continue);
233 error_msg_and_die("server wants to do %s transfer encoding\n", s); 233 error_msg_and_die("server wants to do %s transfer encoding", s);
234 continue; 234 continue;
235 } 235 }
236 } 236 }
@@ -267,7 +267,7 @@ void parse_url(char *url, char **uri_host, int *uri_port, char **uri_path)
267 *uri_port = 80; 267 *uri_port = 80;
268 268
269 if (strncmp(url, "http://", 7) != 0) 269 if (strncmp(url, "http://", 7) != 0)
270 error_msg_and_die("not an http url: %s\n", url); 270 error_msg_and_die("not an http url: %s", url);
271 271
272 *uri_host = url + 7; 272 *uri_host = url + 7;
273 273
@@ -297,7 +297,7 @@ FILE *open_socket(char *host, int port)
297 memset(&sin, 0, sizeof(sin)); 297 memset(&sin, 0, sizeof(sin));
298 sin.sin_family = AF_INET; 298 sin.sin_family = AF_INET;
299 if ((hp = (struct hostent *) gethostbyname(host)) == NULL) 299 if ((hp = (struct hostent *) gethostbyname(host)) == NULL)
300 error_msg_and_die("cannot resolve %s\n", host); 300 error_msg_and_die("cannot resolve %s", host);
301 memcpy(&sin.sin_addr, hp->h_addr_list[0], hp->h_length); 301 memcpy(&sin.sin_addr, hp->h_addr_list[0], hp->h_length);
302 sin.sin_port = htons(port); 302 sin.sin_port = htons(port);
303 303
@@ -338,7 +338,7 @@ char *gethdr(char *buf, size_t bufsiz, FILE *fp, int *istrunc)
338 338
339 /* verify we are at the end of the header name */ 339 /* verify we are at the end of the header name */
340 if (*s != ':') 340 if (*s != ':')
341 error_msg_and_die("bad header line: %s\n", buf); 341 error_msg_and_die("bad header line: %s", buf);
342 342
343 /* locate the start of the header value */ 343 /* locate the start of the header value */
344 for (*s++ = '\0' ; *s == ' ' || *s == '\t' ; ++s) 344 for (*s++ = '\0' ; *s == ' ' || *s == '\t' ; ++s)
@@ -532,7 +532,7 @@ progressmeter(int flag)
532 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 532 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
533 * SUCH DAMAGE. 533 * SUCH DAMAGE.
534 * 534 *
535 * $Id: wget.c,v 1.24 2001/01/31 17:49:47 andersen Exp $ 535 * $Id: wget.c,v 1.25 2001/01/31 19:00:21 kraai Exp $
536 */ 536 */
537 537
538 538