aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-11-06 00:49:59 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-11-06 00:49:59 +0000
commit35a064b67fc1954b95be06499a514a45c9f2e814 (patch)
treec3c2690d8c5c112ce744e17a906a860a0c6897d2 /miscutils
parent202ac504e1addf0aa2debd53e7cd2411cc73ac8c (diff)
downloadbusybox-35a064b67fc1954b95be06499a514a45c9f2e814.tar.gz
build system: tidying up CONFIG_xxx names (suggested by Rob)
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/Config.in2
-rw-r--r--miscutils/crond.c10
2 files changed, 6 insertions, 6 deletions
diff --git a/miscutils/Config.in b/miscutils/Config.in
index f8b4575e0..60b87c1e5 100644
--- a/miscutils/Config.in
+++ b/miscutils/Config.in
@@ -107,7 +107,7 @@ config CROND
# Run daily cron jobs at 4:40 every day:
40 4 * * * /etc/cron/daily > /dev/null 2>&1
-config DEBUG_CROND_OPTION
+config FEATURE_CROND_D
bool "Support option -d to redirect output to stderr"
depends on CROND
default n
diff --git a/miscutils/crond.c b/miscutils/crond.c
index 7d1908c63..bd7a177e0 100644
--- a/miscutils/crond.c
+++ b/miscutils/crond.c
@@ -80,9 +80,9 @@ enum {
OPT_b = (1 << 3),
OPT_S = (1 << 4),
OPT_c = (1 << 5),
- OPT_d = (1 << 6) * ENABLE_DEBUG_CROND_OPTION,
+ OPT_d = (1 << 6) * ENABLE_FEATURE_CROND_D,
};
-#if ENABLE_DEBUG_CROND_OPTION
+#if ENABLE_FEATURE_CROND_D
#define DebugOpt (option_mask32 & OPT_d)
#else
#define DebugOpt 0
@@ -166,11 +166,11 @@ int crond_main(int argc UNUSED_PARAM, char **argv)
INIT_G();
/* "-b after -f is ignored", and so on for every pair a-b */
- opt_complementary = "f-b:b-f:S-L:L-S" USE_DEBUG_CROND_OPTION(":d-l")
+ opt_complementary = "f-b:b-f:S-L:L-S" USE_FEATURE_CROND_D(":d-l")
":l+:d+"; /* -l and -d have numeric param */
- opt = getopt32(argv, "l:L:fbSc:" USE_DEBUG_CROND_OPTION("d:"),
+ opt = getopt32(argv, "l:L:fbSc:" USE_FEATURE_CROND_D("d:"),
&LogLevel, &LogFile, &CDir
- USE_DEBUG_CROND_OPTION(,&LogLevel));
+ USE_FEATURE_CROND_D(,&LogLevel));
/* both -d N and -l N set the same variable: LogLevel */
if (!(opt & OPT_f)) {