*
*/
-#include "busybox.h"
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <arpa/inet.h>
#include <netdb.h>
+#include "busybox.h"
+
/* Stupid libc5 doesn't define this... */
#ifndef timersub
#define timersub(a, b, result) \
fname_out = (strcmp(optarg, "-") == 0 ? (char *)1 : optarg);
break;
default:
- usage(wget_usage);
+ show_usage();
}
}
if (argc - optind != 1)
- usage(wget_usage);
+ show_usage();
/*
* Use the proxy if necessary.
/*FALLTHRU*/
default:
close_and_delete_outfile(output, fname_out, do_continue);
+ chomp(buf);
error_msg_and_die("server returned error %d: %s", atoi(s), buf);
}
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: wget.c,v 1.25 2001/01/31 19:00:21 kraai Exp $
+ * $Id: wget.c,v 1.28 2001/02/20 06:14:08 andersen Exp $
*/