aboutsummaryrefslogtreecommitdiff
path: root/sysklogd/klogd.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-08 12:49:22 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-08 12:49:22 +0000
commit1385899416a4396385ad421ae1f532be7103738a (patch)
treefc4d14a910593d1235318bb36abe5e9f72d2039e /sysklogd/klogd.c
parent5625415085e68ac5e150f54e685417c866620d76 (diff)
downloadbusybox-w32-1385899416a4396385ad421ae1f532be7103738a.tar.gz
busybox-w32-1385899416a4396385ad421ae1f532be7103738a.tar.bz2
busybox-w32-1385899416a4396385ad421ae1f532be7103738a.zip
attempt to regularize atoi mess.
Diffstat (limited to 'sysklogd/klogd.c')
-rw-r--r--sysklogd/klogd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c
index e629bec5d..f735d9fc1 100644
--- a/sysklogd/klogd.c
+++ b/sysklogd/klogd.c
@@ -43,7 +43,6 @@ int klogd_main(int argc, char **argv)
43 int i, n, lastc; 43 int i, n, lastc;
44 char *start; 44 char *start;
45 45
46
47 { 46 {
48 unsigned opt; 47 unsigned opt;
49 48
@@ -52,7 +51,7 @@ int klogd_main(int argc, char **argv)
52 51
53 if (opt & OPT_LEVEL) { 52 if (opt & OPT_LEVEL) {
54 /* Valid levels are between 1 and 8 */ 53 /* Valid levels are between 1 and 8 */
55 console_log_level = bb_xgetlarg(start, 10, 1, 8); 54 console_log_level = xatoul_range(start, 1, 8);
56 } 55 }
57 56
58 if (!(opt & OPT_FOREGROUND)) { 57 if (!(opt & OPT_FOREGROUND)) {