diff options
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/dmesg.c | 2 | ||||
-rw-r--r-- | util-linux/fdformat.c | 2 | ||||
-rw-r--r-- | util-linux/getopt.c | 2 | ||||
-rw-r--r-- | util-linux/hwclock.c | 8 | ||||
-rw-r--r-- | util-linux/ipcs.c | 4 | ||||
-rw-r--r-- | util-linux/losetup.c | 4 | ||||
-rw-r--r-- | util-linux/mount.c | 4 | ||||
-rw-r--r-- | util-linux/rdate.c | 4 | ||||
-rw-r--r-- | util-linux/readprofile.c | 4 | ||||
-rw-r--r-- | util-linux/swaponoff.c | 2 | ||||
-rw-r--r-- | util-linux/switch_root.c | 4 | ||||
-rw-r--r-- | util-linux/umount.c | 4 |
12 files changed, 22 insertions, 22 deletions
diff --git a/util-linux/dmesg.c b/util-linux/dmesg.c index 682c4f696..277415a2d 100644 --- a/util-linux/dmesg.c +++ b/util-linux/dmesg.c | |||
@@ -16,7 +16,7 @@ | |||
16 | int dmesg_main(int argc, char *argv[]) | 16 | int dmesg_main(int argc, char *argv[]) |
17 | { | 17 | { |
18 | char *size, *level; | 18 | char *size, *level; |
19 | int flags = bb_getopt_ulflags(argc, argv, "cs:n:", &size, &level); | 19 | int flags = getopt32(argc, argv, "cs:n:", &size, &level); |
20 | 20 | ||
21 | if (flags & 4) { | 21 | if (flags & 4) { |
22 | if (klogctl(8, NULL, bb_xgetlarg(level, 10, 0, 10))) | 22 | if (klogctl(8, NULL, bb_xgetlarg(level, 10, 0, 10))) |
diff --git a/util-linux/fdformat.c b/util-linux/fdformat.c index 9b97e6873..0242d8d3a 100644 --- a/util-linux/fdformat.c +++ b/util-linux/fdformat.c | |||
@@ -63,7 +63,7 @@ int fdformat_main(int argc,char **argv) | |||
63 | if (argc < 2) { | 63 | if (argc < 2) { |
64 | bb_show_usage(); | 64 | bb_show_usage(); |
65 | } | 65 | } |
66 | verify = !bb_getopt_ulflags(argc, argv, "n"); | 66 | verify = !getopt32(argc, argv, "n"); |
67 | argv += optind; | 67 | argv += optind; |
68 | 68 | ||
69 | xstat(*argv, &st); | 69 | xstat(*argv, &st); |
diff --git a/util-linux/getopt.c b/util-linux/getopt.c index a4968b72e..02bb218b3 100644 --- a/util-linux/getopt.c +++ b/util-linux/getopt.c | |||
@@ -184,7 +184,7 @@ enum { LONG_OPTIONS_INCR = 10 }; | |||
184 | #define init_longopt() add_longopt(NULL,0) | 184 | #define init_longopt() add_longopt(NULL,0) |
185 | 185 | ||
186 | /* Register a long option. The contents of name is copied. */ | 186 | /* Register a long option. The contents of name is copied. */ |
187 | void add_longopt(const char *name,int has_arg) | 187 | void add_longopt(const char *name, int has_arg) |
188 | { | 188 | { |
189 | if (!name) { /* init */ | 189 | if (!name) { /* init */ |
190 | free(long_options); | 190 | free(long_options); |
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c index e1a67f290..cce31335e 100644 --- a/util-linux/hwclock.c +++ b/util-linux/hwclock.c | |||
@@ -182,7 +182,7 @@ static int check_utc(void) | |||
182 | 182 | ||
183 | int hwclock_main ( int argc, char **argv ) | 183 | int hwclock_main ( int argc, char **argv ) |
184 | { | 184 | { |
185 | unsigned long opt; | 185 | unsigned opt; |
186 | int utc; | 186 | int utc; |
187 | 187 | ||
188 | #if ENABLE_FEATURE_HWCLOCK_LONG_OPTIONS | 188 | #if ENABLE_FEATURE_HWCLOCK_LONG_OPTIONS |
@@ -194,11 +194,11 @@ static const struct option hwclock_long_options[] = { | |||
194 | { "systohc", 0, 0, 'w' }, | 194 | { "systohc", 0, 0, 'w' }, |
195 | { 0, 0, 0, 0 } | 195 | { 0, 0, 0, 0 } |
196 | }; | 196 | }; |
197 | bb_applet_long_options = hwclock_long_options; | 197 | applet_long_options = hwclock_long_options; |
198 | #endif | 198 | #endif |
199 | 199 | ||
200 | bb_opt_complementally = "?:r--ws:w--rs:s--wr:l--u:u--l"; | 200 | opt_complementary = "?:r--ws:w--rs:s--wr:l--u:u--l"; |
201 | opt = bb_getopt_ulflags(argc, argv, "lursw"); | 201 | opt = getopt32(argc, argv, "lursw"); |
202 | 202 | ||
203 | /* If -u or -l wasn't given check if we are using utc */ | 203 | /* If -u or -l wasn't given check if we are using utc */ |
204 | if (opt & (HWCLOCK_OPT_UTC | HWCLOCK_OPT_LOCALTIME)) | 204 | if (opt & (HWCLOCK_OPT_UTC | HWCLOCK_OPT_LOCALTIME)) |
diff --git a/util-linux/ipcs.c b/util-linux/ipcs.c index 857065983..5e58e81da 100644 --- a/util-linux/ipcs.c +++ b/util-linux/ipcs.c | |||
@@ -572,14 +572,14 @@ int ipcs_main(int argc, char **argv) | |||
572 | { | 572 | { |
573 | int id = 0; | 573 | int id = 0; |
574 | unsigned flags = 0; | 574 | unsigned flags = 0; |
575 | unsigned long opt; | 575 | unsigned opt; |
576 | char *opt_i; | 576 | char *opt_i; |
577 | #define flag_print (1<<0) | 577 | #define flag_print (1<<0) |
578 | #define flag_msg (1<<1) | 578 | #define flag_msg (1<<1) |
579 | #define flag_sem (1<<2) | 579 | #define flag_sem (1<<2) |
580 | #define flag_shm (1<<3) | 580 | #define flag_shm (1<<3) |
581 | 581 | ||
582 | opt = bb_getopt_ulflags(argc, argv, "i:aqsmtcplu", &opt_i); | 582 | opt = getopt32(argc, argv, "i:aqsmtcplu", &opt_i); |
583 | if (opt & 0x1) { // -i | 583 | if (opt & 0x1) { // -i |
584 | id = atoi(opt_i); | 584 | id = atoi(opt_i); |
585 | flags |= flag_print; | 585 | flags |= flag_print; |
diff --git a/util-linux/losetup.c b/util-linux/losetup.c index 54a160119..8882ee4da 100644 --- a/util-linux/losetup.c +++ b/util-linux/losetup.c | |||
@@ -14,11 +14,11 @@ | |||
14 | 14 | ||
15 | int losetup_main(int argc, char **argv) | 15 | int losetup_main(int argc, char **argv) |
16 | { | 16 | { |
17 | unsigned long opt; | 17 | unsigned opt; |
18 | char *opt_o; | 18 | char *opt_o; |
19 | int offset = 0; | 19 | int offset = 0; |
20 | 20 | ||
21 | opt = bb_getopt_ulflags(argc, argv, "do:", &opt_o); | 21 | opt = getopt32(argc, argv, "do:", &opt_o); |
22 | argc -= optind; | 22 | argc -= optind; |
23 | argv += optind; | 23 | argv += optind; |
24 | 24 | ||
diff --git a/util-linux/mount.c b/util-linux/mount.c index 565dccd9a..899bf8557 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c | |||
@@ -1428,7 +1428,7 @@ int mount_main(int argc, char **argv) | |||
1428 | const char *fstabname; | 1428 | const char *fstabname; |
1429 | FILE *fstab; | 1429 | FILE *fstab; |
1430 | int i, j, rc = 0; | 1430 | int i, j, rc = 0; |
1431 | unsigned long opt; | 1431 | unsigned opt; |
1432 | struct mntent mtpair[2], *mtcur = mtpair; | 1432 | struct mntent mtpair[2], *mtcur = mtpair; |
1433 | 1433 | ||
1434 | /* parse long options, like --bind and --move. Note that -o option | 1434 | /* parse long options, like --bind and --move. Note that -o option |
@@ -1444,7 +1444,7 @@ int mount_main(int argc, char **argv) | |||
1444 | 1444 | ||
1445 | // Parse remaining options | 1445 | // Parse remaining options |
1446 | 1446 | ||
1447 | opt = bb_getopt_ulflags(argc, argv, "o:t:rwanfvs", &opt_o, &fstype); | 1447 | opt = getopt32(argc, argv, "o:t:rwanfvs", &opt_o, &fstype); |
1448 | if (opt & 0x1) append_mount_options(&cmdopts, opt_o); // -o | 1448 | if (opt & 0x1) append_mount_options(&cmdopts, opt_o); // -o |
1449 | //if (opt & 0x2) // -t | 1449 | //if (opt & 0x2) // -t |
1450 | if (opt & 0x4) append_mount_options(&cmdopts, "ro"); // -r | 1450 | if (opt & 0x4) append_mount_options(&cmdopts, "ro"); // -r |
diff --git a/util-linux/rdate.c b/util-linux/rdate.c index c740a691e..c24465dc3 100644 --- a/util-linux/rdate.c +++ b/util-linux/rdate.c | |||
@@ -63,8 +63,8 @@ int rdate_main(int argc, char **argv) | |||
63 | time_t remote_time; | 63 | time_t remote_time; |
64 | unsigned long flags; | 64 | unsigned long flags; |
65 | 65 | ||
66 | bb_opt_complementally = "-1"; | 66 | opt_complementary = "-1"; |
67 | flags = bb_getopt_ulflags(argc, argv, "sp"); | 67 | flags = getopt32(argc, argv, "sp"); |
68 | 68 | ||
69 | remote_time = askremotedate(argv[optind]); | 69 | remote_time = askremotedate(argv[optind]); |
70 | 70 | ||
diff --git a/util-linux/readprofile.c b/util-linux/readprofile.c index 29e9f3e42..ff70bf79b 100644 --- a/util-linux/readprofile.c +++ b/util-linux/readprofile.c | |||
@@ -64,8 +64,8 @@ int readprofile_main(int argc, char **argv) | |||
64 | proFile = defaultpro; | 64 | proFile = defaultpro; |
65 | mapFile = defaultmap; | 65 | mapFile = defaultmap; |
66 | 66 | ||
67 | bb_opt_complementally = "nn:aa:bb:ss:ii:rr:vv"; | 67 | opt_complementary = "nn:aa:bb:ss:ii:rr:vv"; |
68 | bb_getopt_ulflags(argc, argv, "M:m:p:nabsirv", | 68 | getopt32(argc, argv, "M:m:p:nabsirv", |
69 | &mult, &mapFile, &proFile, | 69 | &mult, &mapFile, &proFile, |
70 | &optNative, &optAll, &optBins, &optSub, | 70 | &optNative, &optAll, &optBins, &optSub, |
71 | &optInfo, &optReset, &optVerbose); | 71 | &optInfo, &optReset, &optVerbose); |
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c index ab754848e..4fcb239b6 100644 --- a/util-linux/swaponoff.c +++ b/util-linux/swaponoff.c | |||
@@ -66,7 +66,7 @@ int swap_on_off_main(int argc, char **argv) | |||
66 | if (argc == 1) | 66 | if (argc == 1) |
67 | bb_show_usage(); | 67 | bb_show_usage(); |
68 | 68 | ||
69 | ret = bb_getopt_ulflags(argc, argv, "a"); | 69 | ret = getopt32(argc, argv, "a"); |
70 | if (ret & DO_ALL) | 70 | if (ret & DO_ALL) |
71 | return do_em_all(); | 71 | return do_em_all(); |
72 | 72 | ||
diff --git a/util-linux/switch_root.c b/util-linux/switch_root.c index 1a599073e..f2d9b6e69 100644 --- a/util-linux/switch_root.c +++ b/util-linux/switch_root.c | |||
@@ -71,8 +71,8 @@ int switch_root_main(int argc, char *argv[]) | |||
71 | 71 | ||
72 | // Parse args (-c console) | 72 | // Parse args (-c console) |
73 | 73 | ||
74 | bb_opt_complementally="-2"; | 74 | opt_complementary="-2"; |
75 | bb_getopt_ulflags(argc,argv,"c:",&console); | 75 | getopt32(argc,argv,"c:",&console); |
76 | 76 | ||
77 | // Change to new root directory and verify it's a different fs. | 77 | // Change to new root directory and verify it's a different fs. |
78 | 78 | ||
diff --git a/util-linux/umount.c b/util-linux/umount.c index e4308e547..9c551f986 100644 --- a/util-linux/umount.c +++ b/util-linux/umount.c | |||
@@ -27,7 +27,7 @@ int umount_main(int argc, char **argv) | |||
27 | struct mntent me; | 27 | struct mntent me; |
28 | FILE *fp; | 28 | FILE *fp; |
29 | int status = EXIT_SUCCESS; | 29 | int status = EXIT_SUCCESS; |
30 | unsigned long opt; | 30 | unsigned opt; |
31 | struct mtab_list { | 31 | struct mtab_list { |
32 | char *dir; | 32 | char *dir; |
33 | char *device; | 33 | char *device; |
@@ -36,7 +36,7 @@ int umount_main(int argc, char **argv) | |||
36 | 36 | ||
37 | /* Parse any options */ | 37 | /* Parse any options */ |
38 | 38 | ||
39 | opt = bb_getopt_ulflags(argc, argv, OPTION_STRING); | 39 | opt = getopt32(argc, argv, OPTION_STRING); |
40 | 40 | ||
41 | argc -= optind; | 41 | argc -= optind; |
42 | argv += optind; | 42 | argv += optind; |