aboutsummaryrefslogtreecommitdiff
path: root/sysklogd
diff options
context:
space:
mode:
Diffstat (limited to 'sysklogd')
-rw-r--r--sysklogd/logger.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sysklogd/logger.c b/sysklogd/logger.c
index 759981c75..def833070 100644
--- a/sysklogd/logger.c
+++ b/sysklogd/logger.c
@@ -69,7 +69,7 @@ static int pencode(char *s)
69#define strbuf bb_common_bufsiz1 69#define strbuf bb_common_bufsiz1
70 70
71int logger_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 71int logger_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
72int logger_main(int argc, char **argv) 72int logger_main(int argc UNUSED_PARAM, char **argv)
73{ 73{
74 char *str_p, *str_t; 74 char *str_p, *str_t;
75 int opt; 75 int opt;
@@ -89,9 +89,8 @@ int logger_main(int argc, char **argv)
89 if (opt & 0x1) /* -p */ 89 if (opt & 0x1) /* -p */
90 i = pencode(str_p); 90 i = pencode(str_p);
91 91
92 argc -= optind;
93 argv += optind; 92 argv += optind;
94 if (!argc) { 93 if (!argv[0]) {
95 while (fgets(strbuf, COMMON_BUFSIZE, stdin)) { 94 while (fgets(strbuf, COMMON_BUFSIZE, stdin)) {
96 if (strbuf[0] 95 if (strbuf[0]
97 && NOT_LONE_CHAR(strbuf, '\n') 96 && NOT_LONE_CHAR(strbuf, '\n')