Removed the incorrect and confusing facility argument specified with
openlog() as the correct facility will be specified with syslog() anyway.
This commit is contained in:
parent
3603f79ce5
commit
c089ccdb44
@ -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) {
|
if (optind == argc) {
|
||||||
do {
|
do {
|
||||||
/* read from stdin */
|
/* read from stdin */
|
||||||
@ -152,8 +152,8 @@ extern int logger_main(int argc, char **argv)
|
|||||||
message = xrealloc(message, len);
|
message = xrealloc(message, len);
|
||||||
if(!i)
|
if(!i)
|
||||||
message[0] = 0;
|
message[0] = 0;
|
||||||
else
|
else
|
||||||
strcat(message, " ");
|
strcat(message, " ");
|
||||||
strcat(message, *argv);
|
strcat(message, *argv);
|
||||||
argv++;
|
argv++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user