diff options
Diffstat (limited to 'sysklogd/klogd.c')
-rw-r--r-- | sysklogd/klogd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c index 845c49a5e..4db72110d 100644 --- a/sysklogd/klogd.c +++ b/sysklogd/klogd.c | |||
@@ -146,10 +146,9 @@ static void klogd_close(void) | |||
146 | 146 | ||
147 | #endif | 147 | #endif |
148 | 148 | ||
149 | #define log_buffer bb_common_bufsiz1 | 149 | #define log_buffer bb_common_bufsiz1 |
150 | #define sizeof_log_buffer COMMON_BUFSIZE | ||
151 | enum { | 150 | enum { |
152 | KLOGD_LOGBUF_SIZE = sizeof_log_buffer, | 151 | KLOGD_LOGBUF_SIZE = COMMON_BUFSIZE, |
153 | OPT_LEVEL = (1 << 0), | 152 | OPT_LEVEL = (1 << 0), |
154 | OPT_FOREGROUND = (1 << 1), | 153 | OPT_FOREGROUND = (1 << 1), |
155 | }; | 154 | }; |
@@ -175,6 +174,8 @@ int klogd_main(int argc UNUSED_PARAM, char **argv) | |||
175 | int opt; | 174 | int opt; |
176 | int used; | 175 | int used; |
177 | 176 | ||
177 | setup_common_bufsiz(); | ||
178 | |||
178 | opt = getopt32(argv, "c:n", &opt_c); | 179 | opt = getopt32(argv, "c:n", &opt_c); |
179 | if (opt & OPT_LEVEL) { | 180 | if (opt & OPT_LEVEL) { |
180 | /* Valid levels are between 1 and 8 */ | 181 | /* Valid levels are between 1 and 8 */ |