diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-21 11:09:40 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-21 11:09:40 +0000 |
commit | 5e34ff29bcc870936ab18172f438a34d042d4e03 (patch) | |
tree | a5e7a528f2f916eb883f1161eadceacdf2dca4be /debianutils | |
parent | 8b814b4a349e2262c0ad25793b05206a14651ebb (diff) | |
download | busybox-w32-5e34ff29bcc870936ab18172f438a34d042d4e03.tar.gz busybox-w32-5e34ff29bcc870936ab18172f438a34d042d4e03.tar.bz2 busybox-w32-5e34ff29bcc870936ab18172f438a34d042d4e03.zip |
*: mass renaming of USE_XXXX to IF_XXXX
and SKIP_XXXX to IF_NOT_XXXX - the second one was especially
badly named. It was not skipping anything!
Diffstat (limited to 'debianutils')
-rw-r--r-- | debianutils/run_parts.c | 2 | ||||
-rw-r--r-- | debianutils/start_stop_daemon.c | 10 | ||||
-rw-r--r-- | debianutils/which.c | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/debianutils/run_parts.c b/debianutils/run_parts.c index 7c38fa11f..77fdcccb0 100644 --- a/debianutils/run_parts.c +++ b/debianutils/run_parts.c | |||
@@ -124,7 +124,7 @@ int run_parts_main(int argc UNUSED_PARAM, char **argv) | |||
124 | /* We require exactly one argument: the directory name */ | 124 | /* We require exactly one argument: the directory name */ |
125 | /* We require exactly one argument: the directory name */ | 125 | /* We require exactly one argument: the directory name */ |
126 | opt_complementary = "=1:a::"; | 126 | opt_complementary = "=1:a::"; |
127 | getopt32(argv, "ra:u:t"USE_FEATURE_RUN_PARTS_FANCY("l"), &arg_list, &umask_p); | 127 | getopt32(argv, "ra:u:t"IF_FEATURE_RUN_PARTS_FANCY("l"), &arg_list, &umask_p); |
128 | 128 | ||
129 | umask(xstrtou_range(umask_p, 8, 0, 07777)); | 129 | umask(xstrtou_range(umask_p, 8, 0, 07777)); |
130 | 130 | ||
diff --git a/debianutils/start_stop_daemon.c b/debianutils/start_stop_daemon.c index ab607bde0..6726fc7c9 100644 --- a/debianutils/start_stop_daemon.c +++ b/debianutils/start_stop_daemon.c | |||
@@ -347,13 +347,13 @@ int start_stop_daemon_main(int argc UNUSED_PARAM, char **argv) | |||
347 | /* -xa (at least one) is required if -S is given */ | 347 | /* -xa (at least one) is required if -S is given */ |
348 | /* -q turns off -v */ | 348 | /* -q turns off -v */ |
349 | opt_complementary = "K:S:K--S:S--K:m?p:K?xpun:S?xa" | 349 | opt_complementary = "K:S:K--S:S--K:m?p:K?xpun:S?xa" |
350 | USE_FEATURE_START_STOP_DAEMON_FANCY("q-v"); | 350 | IF_FEATURE_START_STOP_DAEMON_FANCY("q-v"); |
351 | opt = getopt32(argv, "KSbqtma:n:s:u:c:x:p:" | 351 | opt = getopt32(argv, "KSbqtma:n:s:u:c:x:p:" |
352 | USE_FEATURE_START_STOP_DAEMON_FANCY("ovN:R:"), | 352 | IF_FEATURE_START_STOP_DAEMON_FANCY("ovN:R:"), |
353 | &startas, &cmdname, &signame, &userspec, &chuid, &execname, &pidfile | 353 | &startas, &cmdname, &signame, &userspec, &chuid, &execname, &pidfile |
354 | USE_FEATURE_START_STOP_DAEMON_FANCY(,&opt_N) | 354 | IF_FEATURE_START_STOP_DAEMON_FANCY(,&opt_N) |
355 | /* We accept and ignore -R <param> / --retry <param> */ | 355 | /* We accept and ignore -R <param> / --retry <param> */ |
356 | USE_FEATURE_START_STOP_DAEMON_FANCY(,NULL) | 356 | IF_FEATURE_START_STOP_DAEMON_FANCY(,NULL) |
357 | ); | 357 | ); |
358 | 358 | ||
359 | if (opt & OPT_s) { | 359 | if (opt & OPT_s) { |
@@ -366,7 +366,7 @@ int start_stop_daemon_main(int argc UNUSED_PARAM, char **argv) | |||
366 | if (!execname) /* in case -a is given and -x is not */ | 366 | if (!execname) /* in case -a is given and -x is not */ |
367 | execname = startas; | 367 | execname = startas; |
368 | 368 | ||
369 | // USE_FEATURE_START_STOP_DAEMON_FANCY( | 369 | // IF_FEATURE_START_STOP_DAEMON_FANCY( |
370 | // if (retry_arg) | 370 | // if (retry_arg) |
371 | // retries = xatoi_u(retry_arg); | 371 | // retries = xatoi_u(retry_arg); |
372 | // ) | 372 | // ) |
diff --git a/debianutils/which.c b/debianutils/which.c index 748e6dc25..1558e5c6d 100644 --- a/debianutils/which.c +++ b/debianutils/which.c | |||
@@ -15,13 +15,13 @@ | |||
15 | int which_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 15 | int which_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
16 | int which_main(int argc UNUSED_PARAM, char **argv) | 16 | int which_main(int argc UNUSED_PARAM, char **argv) |
17 | { | 17 | { |
18 | USE_DESKTOP(int opt;) | 18 | IF_DESKTOP(int opt;) |
19 | int status = EXIT_SUCCESS; | 19 | int status = EXIT_SUCCESS; |
20 | char *path; | 20 | char *path; |
21 | char *p; | 21 | char *p; |
22 | 22 | ||
23 | opt_complementary = "-1"; /* at least one argument */ | 23 | opt_complementary = "-1"; /* at least one argument */ |
24 | USE_DESKTOP(opt =) getopt32(argv, "a"); | 24 | IF_DESKTOP(opt =) getopt32(argv, "a"); |
25 | argv += optind; | 25 | argv += optind; |
26 | 26 | ||
27 | /* This matches what is seen on e.g. ubuntu. | 27 | /* This matches what is seen on e.g. ubuntu. |