diff options
Diffstat (limited to 'sysklogd/logger.c')
-rw-r--r-- | sysklogd/logger.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysklogd/logger.c b/sysklogd/logger.c index a78cf77b9..15a4bfb82 100644 --- a/sysklogd/logger.c +++ b/sysklogd/logger.c | |||
@@ -89,7 +89,7 @@ static int pencode(char *s) | |||
89 | 89 | ||
90 | int logger_main(int argc, char **argv) | 90 | int logger_main(int argc, char **argv) |
91 | { | 91 | { |
92 | unsigned long opt; | 92 | unsigned opt; |
93 | char *opt_p, *opt_t; | 93 | char *opt_p, *opt_t; |
94 | int pri = LOG_USER | LOG_NOTICE; | 94 | int pri = LOG_USER | LOG_NOTICE; |
95 | int option = 0; | 95 | int option = 0; |
@@ -100,7 +100,7 @@ int logger_main(int argc, char **argv) | |||
100 | bb_getpwuid(name, geteuid(), sizeof(name)); | 100 | bb_getpwuid(name, geteuid(), sizeof(name)); |
101 | 101 | ||
102 | /* Parse any options */ | 102 | /* Parse any options */ |
103 | opt = bb_getopt_ulflags(argc, argv, "p:st:", &opt_p, &opt_t); | 103 | opt = getopt32(argc, argv, "p:st:", &opt_p, &opt_t); |
104 | if (opt & 0x1) pri = pencode(opt_p); // -p | 104 | if (opt & 0x1) pri = pencode(opt_p); // -p |
105 | if (opt & 0x2) option |= LOG_PERROR; // -s | 105 | if (opt & 0x2) option |= LOG_PERROR; // -s |
106 | if (opt & 0x4) safe_strncpy(name, opt_t, sizeof(name)); // -t | 106 | if (opt & 0x4) safe_strncpy(name, opt_t, sizeof(name)); // -t |