diff options
Diffstat (limited to 'sysklogd/klogd.c')
-rw-r--r-- | sysklogd/klogd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c index 4132eb68e..b76a52ff7 100644 --- a/sysklogd/klogd.c +++ b/sysklogd/klogd.c | |||
@@ -136,12 +136,12 @@ extern int klogd_main(int argc, char **argv) | |||
136 | switch (opt) { | 136 | switch (opt) { |
137 | case 'c': | 137 | case 'c': |
138 | if ((optarg == NULL) || (optarg[1] != '\0')) { | 138 | if ((optarg == NULL) || (optarg[1] != '\0')) { |
139 | show_usage(); | 139 | bb_show_usage(); |
140 | } | 140 | } |
141 | /* Valid levels are between 1 and 8 */ | 141 | /* Valid levels are between 1 and 8 */ |
142 | console_log_level = *optarg - '1'; | 142 | console_log_level = *optarg - '1'; |
143 | if (console_log_level > 7) { | 143 | if (console_log_level > 7) { |
144 | show_usage(); | 144 | bb_show_usage(); |
145 | } | 145 | } |
146 | console_log_level++; | 146 | console_log_level++; |
147 | 147 | ||
@@ -150,16 +150,16 @@ extern int klogd_main(int argc, char **argv) | |||
150 | doFork = FALSE; | 150 | doFork = FALSE; |
151 | break; | 151 | break; |
152 | default: | 152 | default: |
153 | show_usage(); | 153 | bb_show_usage(); |
154 | } | 154 | } |
155 | } | 155 | } |
156 | 156 | ||
157 | if (doFork) { | 157 | if (doFork) { |
158 | #if !defined(__UCLIBC__) || defined(__UCLIBC_HAS_MMU__) | 158 | #if !defined(__UCLIBC__) || defined(__UCLIBC_HAS_MMU__) |
159 | if (daemon(0, 1) < 0) | 159 | if (daemon(0, 1) < 0) |
160 | perror_msg_and_die("daemon"); | 160 | bb_perror_msg_and_die("daemon"); |
161 | #else | 161 | #else |
162 | error_msg_and_die("daemon not supported"); | 162 | bb_error_msg_and_die("daemon not supported"); |
163 | #endif | 163 | #endif |
164 | } | 164 | } |
165 | doKlogd(console_log_level); | 165 | doKlogd(console_log_level); |