diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-07-19 22:28:02 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-07-19 22:28:02 +0000 |
commit | 20aab260e2f7011523402464fb079f48e5899890 (patch) | |
tree | f7822e652f54884459d525f57f1ef18c03a126f7 /networking/wget.c | |
parent | 0382eb886529fc4dab170e7d66883c20fe0e2883 (diff) | |
download | busybox-w32-20aab260e2f7011523402464fb079f48e5899890.tar.gz busybox-w32-20aab260e2f7011523402464fb079f48e5899890.tar.bz2 busybox-w32-20aab260e2f7011523402464fb079f48e5899890.zip |
Some adjustments, mostly from David McCullough <davidm@lineo.com> to
make busybox be more uClinux friendly. I also adjusted Config.h for
uClinux so it will automagically disable apps the arn't going to
work without fork() and such.
-Erik
Diffstat (limited to 'networking/wget.c')
-rw-r--r-- | networking/wget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/wget.c b/networking/wget.c index 009e0c819..59373d1d9 100644 --- a/networking/wget.c +++ b/networking/wget.c | |||
@@ -56,12 +56,12 @@ static void parse_url(char *url, struct host_info *h); | |||
56 | static FILE *open_socket(char *host, int port); | 56 | static FILE *open_socket(char *host, int port); |
57 | static char *gethdr(char *buf, size_t bufsiz, FILE *fp, int *istrunc); | 57 | static char *gethdr(char *buf, size_t bufsiz, FILE *fp, int *istrunc); |
58 | static int ftpcmd(char *s1, char *s2, FILE *fp, char *buf); | 58 | static int ftpcmd(char *s1, char *s2, FILE *fp, char *buf); |
59 | static void progressmeter(int flag); | ||
60 | 59 | ||
61 | /* Globals (can be accessed from signal handlers */ | 60 | /* Globals (can be accessed from signal handlers */ |
62 | static off_t filesize = 0; /* content-length of the file */ | 61 | static off_t filesize = 0; /* content-length of the file */ |
63 | static int chunked = 0; /* chunked transfer encoding */ | 62 | static int chunked = 0; /* chunked transfer encoding */ |
64 | #ifdef BB_FEATURE_WGET_STATUSBAR | 63 | #ifdef BB_FEATURE_WGET_STATUSBAR |
64 | static void progressmeter(int flag); | ||
65 | static char *curfile; /* Name of current file being transferred. */ | 65 | static char *curfile; /* Name of current file being transferred. */ |
66 | static struct timeval start; /* Time a transfer started. */ | 66 | static struct timeval start; /* Time a transfer started. */ |
67 | static volatile unsigned long statbytes = 0; /* Number of bytes transferred so far. */ | 67 | static volatile unsigned long statbytes = 0; /* Number of bytes transferred so far. */ |
@@ -817,7 +817,7 @@ progressmeter(int flag) | |||
817 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 817 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
818 | * SUCH DAMAGE. | 818 | * SUCH DAMAGE. |
819 | * | 819 | * |
820 | * $Id: wget.c,v 1.44 2001/07/19 19:13:55 kraai Exp $ | 820 | * $Id: wget.c,v 1.45 2001/07/19 22:28:01 andersen Exp $ |
821 | */ | 821 | */ |
822 | 822 | ||
823 | 823 | ||