summaryrefslogtreecommitdiff
path: root/sysklogd
diff options
context:
space:
mode:
authorGlenn L McGrath2004-07-22 04:23:18 +0000
committerGlenn L McGrath2004-07-22 04:23:18 +0000
commit5529b7bb874396af53552cf12e3e354693350ba2 (patch)
treea4e344fb59f32c4845003f7f32d918aa50f9f599 /sysklogd
parent36a836d5649e67506a8f0261c564e01651c21a26 (diff)
downloadbusybox-5529b7bb874396af53552cf12e3e354693350ba2.zip
busybox-5529b7bb874396af53552cf12e3e354693350ba2.tar.gz
Reverse my previous change, "::" is a GNU getopt extension that allows
an optional argument. Looks like a glibc bug to me
Diffstat (limited to 'sysklogd')
-rw-r--r--sysklogd/syslogd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index 8534c0a..2023873 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -31,6 +31,7 @@
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
+#include <getopt.h>
#include <netdb.h>
#include <paths.h>
#include <signal.h>
@@ -631,7 +632,7 @@ extern int syslogd_main(int argc, char **argv)
char *p;
/* do normal option parsing */
- while ((opt = getopt(argc, argv, "m:nO:s:Sb:R:LC:")) > 0) {
+ while ((opt = getopt(argc, argv, "m:nO:s:Sb:R:LC::")) > 0) {
switch (opt) {
case 'm':
MarkInterval = atoi(optarg) * 60;