aboutsummaryrefslogtreecommitdiff
path: root/sysklogd/klogd.c
diff options
context:
space:
mode:
authormjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-03-19 09:13:01 +0000
committermjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-03-19 09:13:01 +0000
commite901c15d890dbbdce4c086963cb1513653fc46b5 (patch)
treea318d0f03aa076c74b576ea45dc543a5669e8e91 /sysklogd/klogd.c
parent40758c00616c3b2c85d83eb4afdeb04b1f65c9f1 (diff)
downloadbusybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.tar.gz
busybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.tar.bz2
busybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.zip
Major coreutils update.
git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'sysklogd/klogd.c')
-rw-r--r--sysklogd/klogd.c10
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);