diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-12 20:58:27 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-12 20:58:27 +0000 |
commit | 6ca409e0e4c198fe3081346eebbae3f068fe605a (patch) | |
tree | 060cb05d99220a1eda399194d1209c269f0e8cd8 /networking/wget.c | |
parent | 4185548984357df91311f30c8e43d95f33922576 (diff) | |
download | busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.gz busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.bz2 busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.zip |
trylink: produce even more info about final link stage
trylink: explain how to modify link and drastically decrease amount
of padding (unfortunately, needs hand editing ATM).
*: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts
size saving: 0.5k
Diffstat (limited to 'networking/wget.c')
-rw-r--r-- | networking/wget.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/wget.c b/networking/wget.c index 7b583c7ab..d90368c40 100644 --- a/networking/wget.c +++ b/networking/wget.c | |||
@@ -114,7 +114,7 @@ int wget_main(int argc, char **argv) | |||
114 | bool use_proxy = 1; /* Use proxies if env vars are set */ | 114 | bool use_proxy = 1; /* Use proxies if env vars are set */ |
115 | const char *proxy_flag = "on"; /* Use proxies if env vars are set */ | 115 | const char *proxy_flag = "on"; /* Use proxies if env vars are set */ |
116 | const char *user_agent = "Wget";/* "User-Agent" header field */ | 116 | const char *user_agent = "Wget";/* "User-Agent" header field */ |
117 | static const char keywords[] = | 117 | static const char keywords[] ALIGN1 = |
118 | "content-length\0""transfer-encoding\0""chunked\0""location\0"; | 118 | "content-length\0""transfer-encoding\0""chunked\0""location\0"; |
119 | enum { | 119 | enum { |
120 | KEY_content_length = 1, KEY_transfer_encoding, KEY_chunked, KEY_location | 120 | KEY_content_length = 1, KEY_transfer_encoding, KEY_chunked, KEY_location |
@@ -131,7 +131,7 @@ int wget_main(int argc, char **argv) | |||
131 | WGET_OPT_HEADER = 0x100, | 131 | WGET_OPT_HEADER = 0x100, |
132 | }; | 132 | }; |
133 | #if ENABLE_FEATURE_WGET_LONG_OPTIONS | 133 | #if ENABLE_FEATURE_WGET_LONG_OPTIONS |
134 | static const char wget_longopts[] = | 134 | static const char wget_longopts[] ALIGN1 = |
135 | /* name, has_arg, val */ | 135 | /* name, has_arg, val */ |
136 | "continue\0" No_argument "c" | 136 | "continue\0" No_argument "c" |
137 | "spider\0" No_argument "s" | 137 | "spider\0" No_argument "s" |
@@ -539,7 +539,7 @@ static void parse_url(char *src_url, struct host_info *h) | |||
539 | p = strchr(h->host, '#'); if (!sp || (p && sp > p)) sp = p; | 539 | p = strchr(h->host, '#'); if (!sp || (p && sp > p)) sp = p; |
540 | if (!sp) { | 540 | if (!sp) { |
541 | /* must be writable because of bb_get_last_path_component() */ | 541 | /* must be writable because of bb_get_last_path_component() */ |
542 | static char nullstr[] = ""; | 542 | static char nullstr[] ALIGN1 = ""; |
543 | h->path = nullstr; | 543 | h->path = nullstr; |
544 | } else if (*sp == '/') { | 544 | } else if (*sp == '/') { |
545 | *sp = '\0'; | 545 | *sp = '\0'; |