summaryrefslogtreecommitdiff
path: root/sysklogd/logger.c
diff options
context:
space:
mode:
authorPeter Kjellerstedt2005-04-06 10:56:57 +0000
committerPeter Kjellerstedt2005-04-06 10:56:57 +0000
commitc089ccdb441cf1493e974fa2ed4f9ac22c5637c7 (patch)
tree34c811a5ead38bcf6c2b7e9e562a27be121800ed /sysklogd/logger.c
parent3603f79ce594a1043d1a7b2c0b45cf8c79d33f60 (diff)
downloadbusybox-c089ccdb441cf1493e974fa2ed4f9ac22c5637c7.zip
busybox-c089ccdb441cf1493e974fa2ed4f9ac22c5637c7.tar.gz
Removed the incorrect and confusing facility argument specified with
openlog() as the correct facility will be specified with syslog() anyway.
Diffstat (limited to 'sysklogd/logger.c')
-rw-r--r--sysklogd/logger.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysklogd/logger.c b/sysklogd/logger.c
index 1615531..fee33b7 100644
--- a/sysklogd/logger.c
+++ b/sysklogd/logger.c
@@ -127,7 +127,7 @@ extern int logger_main(int argc, char **argv)
}
}
- openlog(name, option, (pri | LOG_FACMASK));
+ openlog(name, option, 0);
if (optind == argc) {
do {
/* read from stdin */
@@ -152,8 +152,8 @@ extern int logger_main(int argc, char **argv)
message = xrealloc(message, len);
if(!i)
message[0] = 0;
- else
- strcat(message, " ");
+ else
+ strcat(message, " ");
strcat(message, *argv);
argv++;
}