From 67b23e6043d8e2b30b0bf3bc105b8583c2a26db5 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 3 Oct 2006 21:00:06 +0000 Subject: 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. --- networking/wget.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'networking/wget.c') 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[] = { int wget_main(int argc, char **argv) { int n, try=5, status; - unsigned long opt; + unsigned opt; int port; char *proxy = 0; char *dir_prefix=NULL; @@ -148,11 +148,11 @@ int wget_main(int argc, char **argv) /* * Crack command line. */ - bb_opt_complementally = "-1:\203::"; + opt_complementary = "-1:\203::"; #if ENABLE_FEATURE_WGET_LONG_OPTIONS - bb_applet_long_options = wget_long_options; + applet_long_options = wget_long_options; #endif - opt = bb_getopt_ulflags(argc, argv, "cq\213O:\203:P:Y:U:", + opt = getopt32(argc, argv, "cq\213O:\203:P:Y:U:", &fname_out, &headers_llist, &dir_prefix, &proxy_flag, &user_agent); if (strcmp(proxy_flag, "off") == 0) { -- cgit v1.2.3-55-g6feb