summaryrefslogtreecommitdiff
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-w32-35a064b67fc1954b95be06499a514a45c9f2e814.tar.gz
busybox-w32-35a064b67fc1954b95be06499a514a45c9f2e814.tar.bz2
busybox-w32-35a064b67fc1954b95be06499a514a45c9f2e814.zip
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
107 # Run daily cron jobs at 4:40 every day: 107 # Run daily cron jobs at 4:40 every day:
108 40 4 * * * /etc/cron/daily > /dev/null 2>&1 108 40 4 * * * /etc/cron/daily > /dev/null 2>&1
109 109
110config DEBUG_CROND_OPTION 110config FEATURE_CROND_D
111 bool "Support option -d to redirect output to stderr" 111 bool "Support option -d to redirect output to stderr"
112 depends on CROND 112 depends on CROND
113 default n 113 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 {
80 OPT_b = (1 << 3), 80 OPT_b = (1 << 3),
81 OPT_S = (1 << 4), 81 OPT_S = (1 << 4),
82 OPT_c = (1 << 5), 82 OPT_c = (1 << 5),
83 OPT_d = (1 << 6) * ENABLE_DEBUG_CROND_OPTION, 83 OPT_d = (1 << 6) * ENABLE_FEATURE_CROND_D,
84}; 84};
85#if ENABLE_DEBUG_CROND_OPTION 85#if ENABLE_FEATURE_CROND_D
86#define DebugOpt (option_mask32 & OPT_d) 86#define DebugOpt (option_mask32 & OPT_d)
87#else 87#else
88#define DebugOpt 0 88#define DebugOpt 0
@@ -166,11 +166,11 @@ int crond_main(int argc UNUSED_PARAM, char **argv)
166 INIT_G(); 166 INIT_G();
167 167
168 /* "-b after -f is ignored", and so on for every pair a-b */ 168 /* "-b after -f is ignored", and so on for every pair a-b */
169 opt_complementary = "f-b:b-f:S-L:L-S" USE_DEBUG_CROND_OPTION(":d-l") 169 opt_complementary = "f-b:b-f:S-L:L-S" USE_FEATURE_CROND_D(":d-l")
170 ":l+:d+"; /* -l and -d have numeric param */ 170 ":l+:d+"; /* -l and -d have numeric param */
171 opt = getopt32(argv, "l:L:fbSc:" USE_DEBUG_CROND_OPTION("d:"), 171 opt = getopt32(argv, "l:L:fbSc:" USE_FEATURE_CROND_D("d:"),
172 &LogLevel, &LogFile, &CDir 172 &LogLevel, &LogFile, &CDir
173 USE_DEBUG_CROND_OPTION(,&LogLevel)); 173 USE_FEATURE_CROND_D(,&LogLevel));
174 /* both -d N and -l N set the same variable: LogLevel */ 174 /* both -d N and -l N set the same variable: LogLevel */
175 175
176 if (!(opt & OPT_f)) { 176 if (!(opt & OPT_f)) {