diff options
author | Rob Landley | 2006-08-03 15:41:12 +0000 |
---|---|---|
committer | Rob Landley | 2006-08-03 15:41:12 +0000 |
commit | d921b2ecc0d294ad4bf8c7458fc52a60c28727d2 (patch) | |
tree | e4a2769349867c441cf2983d83097bb66701a733 /networking/wget.c | |
parent | 6dce0b6fa79f2d4bb7e9d90e1fbc0f6beb25f855 (diff) | |
download | busybox-d921b2ecc0d294ad4bf8c7458fc52a60c28727d2.zip busybox-d921b2ecc0d294ad4bf8c7458fc52a60c28727d2.tar.gz |
Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only
had one user), clean up lots of #includes... General cleanup pass. What I've
been doing for the last couple days.
And it conflicts! I've removed httpd.c from this checkin due to somebody else
touching that file. It builds for me. I have to catch a bus. (Now you know
why I'm looking forward to Mercurial.)
Diffstat (limited to 'networking/wget.c')
-rw-r--r-- | networking/wget.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/networking/wget.c b/networking/wget.c index 6565bb1..1b7555a 100644 --- a/networking/wget.c +++ b/networking/wget.c @@ -7,9 +7,6 @@ */ #include "busybox.h" -#include <errno.h> -#include <signal.h> -#include <sys/ioctl.h> #include <getopt.h> @@ -221,7 +218,7 @@ int wget_main(int argc, char **argv) if (use_proxy) { proxy = getenv(target.is_ftp ? "ftp_proxy" : "http_proxy"); if (proxy && *proxy) { - parse_url(bb_xstrdup(proxy), &server); + parse_url(xstrdup(proxy), &server); } else { use_proxy = 0; } @@ -263,7 +260,7 @@ int wget_main(int argc, char **argv) output = stdout; quiet_flag = TRUE; } else { - output = bb_xfopen(fname_out, (do_continue ? "a" : "w")); + output = xfopen(fname_out, (do_continue ? "a" : "w")); } /* @@ -396,9 +393,9 @@ read_response: } if (strcasecmp(buf, "location") == 0) { if (s[0] == '/') - target.path = bb_xstrdup(s+1); + target.path = xstrdup(s+1); else { - parse_url(bb_xstrdup(s), &target); + parse_url(xstrdup(s), &target); if (use_proxy == 0) { server.host = target.host; server.port = target.port; @@ -419,7 +416,7 @@ read_response: * FTP session */ if (! target.user) - target.user = bb_xstrdup("anonymous:busybox@"); + target.user = xstrdup("anonymous:busybox@"); sfp = open_socket(&s_in); if (ftpcmd(NULL, NULL, sfp, buf) != 220) @@ -556,7 +553,7 @@ void parse_url(char *url, struct host_info *h) *sp++ = '\0'; h->path = sp; } else - h->path = bb_xstrdup(""); + h->path = xstrdup(""); up = strrchr(h->host, '@'); if (up != NULL) { |