diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2005-04-06 10:56:57 +0000 |
---|---|---|
committer | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2005-04-06 10:56:57 +0000 |
commit | c089ccdb441cf1493e974fa2ed4f9ac22c5637c7 (patch) | |
tree | 34c811a5ead38bcf6c2b7e9e562a27be121800ed | |
parent | 3603f79ce594a1043d1a7b2c0b45cf8c79d33f60 (diff) | |
download | busybox-w32-c089ccdb441cf1493e974fa2ed4f9ac22c5637c7.tar.gz busybox-w32-c089ccdb441cf1493e974fa2ed4f9ac22c5637c7.tar.bz2 busybox-w32-c089ccdb441cf1493e974fa2ed4f9ac22c5637c7.zip |
Removed the incorrect and confusing facility argument specified with
openlog() as the correct facility will be specified with syslog()
anyway.
-rw-r--r-- | sysklogd/logger.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysklogd/logger.c b/sysklogd/logger.c index 16155316f..fee33b788 100644 --- a/sysklogd/logger.c +++ b/sysklogd/logger.c | |||
@@ -127,7 +127,7 @@ extern int logger_main(int argc, char **argv) | |||
127 | } | 127 | } |
128 | } | 128 | } |
129 | 129 | ||
130 | openlog(name, option, (pri | LOG_FACMASK)); | 130 | openlog(name, option, 0); |
131 | if (optind == argc) { | 131 | if (optind == argc) { |
132 | do { | 132 | do { |
133 | /* read from stdin */ | 133 | /* read from stdin */ |
@@ -152,8 +152,8 @@ extern int logger_main(int argc, char **argv) | |||
152 | message = xrealloc(message, len); | 152 | message = xrealloc(message, len); |
153 | if(!i) | 153 | if(!i) |
154 | message[0] = 0; | 154 | message[0] = 0; |
155 | else | 155 | else |
156 | strcat(message, " "); | 156 | strcat(message, " "); |
157 | strcat(message, *argv); | 157 | strcat(message, *argv); |
158 | argv++; | 158 | argv++; |
159 | } | 159 | } |