diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-08 12:49:22 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-08 12:49:22 +0000 |
commit | 1385899416a4396385ad421ae1f532be7103738a (patch) | |
tree | fc4d14a910593d1235318bb36abe5e9f72d2039e /miscutils/crond.c | |
parent | 5625415085e68ac5e150f54e685417c866620d76 (diff) | |
download | busybox-w32-1385899416a4396385ad421ae1f532be7103738a.tar.gz busybox-w32-1385899416a4396385ad421ae1f532be7103738a.tar.bz2 busybox-w32-1385899416a4396385ad421ae1f532be7103738a.zip |
attempt to regularize atoi mess.
Diffstat (limited to 'miscutils/crond.c')
-rw-r--r-- | miscutils/crond.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c index db0cc2c6b..623e8c359 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c | |||
@@ -65,10 +65,10 @@ typedef struct CronLine { | |||
65 | #define DaemonUid 0 | 65 | #define DaemonUid 0 |
66 | 66 | ||
67 | #if ENABLE_DEBUG_CROND_OPTION | 67 | #if ENABLE_DEBUG_CROND_OPTION |
68 | static short DebugOpt; | 68 | static unsigned DebugOpt; |
69 | #endif | 69 | #endif |
70 | 70 | ||
71 | static short LogLevel = 8; | 71 | static unsigned LogLevel = 8; |
72 | static const char *LogFile; | 72 | static const char *LogFile; |
73 | static const char *CDir = CRONTABS; | 73 | static const char *CDir = CRONTABS; |
74 | 74 | ||
@@ -155,7 +155,7 @@ int crond_main(int ac, char **av) | |||
155 | #endif | 155 | #endif |
156 | ); | 156 | ); |
157 | if (opt & 1) { | 157 | if (opt & 1) { |
158 | LogLevel = atoi(lopt); | 158 | LogLevel = xatou(lopt); |
159 | } | 159 | } |
160 | if (opt & 2) { | 160 | if (opt & 2) { |
161 | if (*Lopt != 0) { | 161 | if (*Lopt != 0) { |
@@ -169,7 +169,7 @@ int crond_main(int ac, char **av) | |||
169 | } | 169 | } |
170 | #if ENABLE_DEBUG_CROND_OPTION | 170 | #if ENABLE_DEBUG_CROND_OPTION |
171 | if (opt & 64) { | 171 | if (opt & 64) { |
172 | DebugOpt = atoi(dopt); | 172 | DebugOpt = xatou(dopt); |
173 | LogLevel = 0; | 173 | LogLevel = 0; |
174 | } | 174 | } |
175 | #endif | 175 | #endif |