summaryrefslogtreecommitdiff
path: root/networking/wget.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-03 21:00:06 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-03 21:00:06 +0000
commit67b23e6043d8e2b30b0bf3bc105b8583c2a26db5 (patch)
treeedb58560b444979051b42ab7f0c0c718f7459754 /networking/wget.c
parent40920825d59874cf285390434486e88c8498d2d8 (diff)
downloadbusybox-w32-67b23e6043d8e2b30b0bf3bc105b8583c2a26db5.tar.gz
busybox-w32-67b23e6043d8e2b30b0bf3bc105b8583c2a26db5.tar.bz2
busybox-w32-67b23e6043d8e2b30b0bf3bc105b8583c2a26db5.zip
getopt_ulflags -> getopt32.
It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit.
Diffstat (limited to 'networking/wget.c')
-rw-r--r--networking/wget.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/networking/wget.c b/networking/wget.c
index bbe1bba9a..0054a9876 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -124,7 +124,7 @@ static const struct option wget_long_options[] = {
124int wget_main(int argc, char **argv) 124int wget_main(int argc, char **argv)
125{ 125{
126 int n, try=5, status; 126 int n, try=5, status;
127 unsigned long opt; 127 unsigned opt;
128 int port; 128 int port;
129 char *proxy = 0; 129 char *proxy = 0;
130 char *dir_prefix=NULL; 130 char *dir_prefix=NULL;
@@ -148,11 +148,11 @@ int wget_main(int argc, char **argv)
148 /* 148 /*
149 * Crack command line. 149 * Crack command line.
150 */ 150 */
151 bb_opt_complementally = "-1:\203::"; 151 opt_complementary = "-1:\203::";
152#if ENABLE_FEATURE_WGET_LONG_OPTIONS 152#if ENABLE_FEATURE_WGET_LONG_OPTIONS
153 bb_applet_long_options = wget_long_options; 153 applet_long_options = wget_long_options;
154#endif 154#endif
155 opt = bb_getopt_ulflags(argc, argv, "cq\213O:\203:P:Y:U:", 155 opt = getopt32(argc, argv, "cq\213O:\203:P:Y:U:",
156 &fname_out, &headers_llist, 156 &fname_out, &headers_llist,
157 &dir_prefix, &proxy_flag, &user_agent); 157 &dir_prefix, &proxy_flag, &user_agent);
158 if (strcmp(proxy_flag, "off") == 0) { 158 if (strcmp(proxy_flag, "off") == 0) {