diff options
Diffstat (limited to 'sysklogd')
-rw-r--r-- | sysklogd/klogd.c | 2 | ||||
-rw-r--r-- | sysklogd/syslogd.c | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c index 52a815d56..5eb13578b 100644 --- a/sysklogd/klogd.c +++ b/sysklogd/klogd.c | |||
@@ -135,7 +135,7 @@ extern int klogd_main(int argc, char **argv) | |||
135 | } | 135 | } |
136 | } | 136 | } |
137 | 137 | ||
138 | if (doFork == TRUE) { | 138 | if (doFork) { |
139 | #if !defined(__UCLIBC__) || defined(__UCLIBC_HAS_MMU__) | 139 | #if !defined(__UCLIBC__) || defined(__UCLIBC_HAS_MMU__) |
140 | if (daemon(0, 1) < 0) | 140 | if (daemon(0, 1) < 0) |
141 | perror_msg_and_die("daemon"); | 141 | perror_msg_and_die("daemon"); |
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index 625f99715..6db017cd4 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c | |||
@@ -276,7 +276,7 @@ static void message (char *fmt, ...) | |||
276 | fl.l_len = 1; | 276 | fl.l_len = 1; |
277 | 277 | ||
278 | #ifdef CONFIG_FEATURE_IPC_SYSLOG | 278 | #ifdef CONFIG_FEATURE_IPC_SYSLOG |
279 | if ((circular_logging == TRUE) && (buf != NULL)){ | 279 | if ((circular_logging) && (buf != NULL)){ |
280 | char b[1024]; | 280 | char b[1024]; |
281 | va_start (arguments, fmt); | 281 | va_start (arguments, fmt); |
282 | vsprintf (b, fmt, arguments); | 282 | vsprintf (b, fmt, arguments); |
@@ -366,7 +366,7 @@ static const int IOV_COUNT = 2; | |||
366 | "%s:%d",RemoteHost,RemotePort); | 366 | "%s:%d",RemoteHost,RemotePort); |
367 | } | 367 | } |
368 | } | 368 | } |
369 | if (local_logging == TRUE) | 369 | if (local_logging) |
370 | #endif | 370 | #endif |
371 | /* now spew out the message to wherever it is supposed to go */ | 371 | /* now spew out the message to wherever it is supposed to go */ |
372 | message("%s %s %s %s\n", timestamp, LocalHostName, res, msg); | 372 | message("%s %s %s %s\n", timestamp, LocalHostName, res, msg); |
@@ -519,13 +519,13 @@ static void doSyslogd (void) | |||
519 | FD_SET (sock_fd, &fds); | 519 | FD_SET (sock_fd, &fds); |
520 | 520 | ||
521 | #ifdef CONFIG_FEATURE_IPC_SYSLOG | 521 | #ifdef CONFIG_FEATURE_IPC_SYSLOG |
522 | if (circular_logging == TRUE ){ | 522 | if (circular_logging ){ |
523 | ipcsyslog_init(); | 523 | ipcsyslog_init(); |
524 | } | 524 | } |
525 | #endif | 525 | #endif |
526 | 526 | ||
527 | #ifdef CONFIG_FEATURE_REMOTE_LOG | 527 | #ifdef CONFIG_FEATURE_REMOTE_LOG |
528 | if (doRemoteLog == TRUE){ | 528 | if (doRemoteLog){ |
529 | init_RemoteLog(); | 529 | init_RemoteLog(); |
530 | } | 530 | } |
531 | #endif | 531 | #endif |
@@ -616,7 +616,7 @@ extern int syslogd_main(int argc, char **argv) | |||
616 | 616 | ||
617 | #ifdef CONFIG_FEATURE_REMOTE_LOG | 617 | #ifdef CONFIG_FEATURE_REMOTE_LOG |
618 | /* If they have not specified remote logging, then log locally */ | 618 | /* If they have not specified remote logging, then log locally */ |
619 | if (doRemoteLog == FALSE) | 619 | if (! doRemoteLog) |
620 | local_logging = TRUE; | 620 | local_logging = TRUE; |
621 | #endif | 621 | #endif |
622 | 622 | ||
@@ -629,7 +629,7 @@ extern int syslogd_main(int argc, char **argv) | |||
629 | 629 | ||
630 | umask(0); | 630 | umask(0); |
631 | 631 | ||
632 | if (doFork == TRUE) { | 632 | if (doFork) { |
633 | #if !defined(__UCLIBC__) || defined(__UCLIBC_HAS_MMU__) | 633 | #if !defined(__UCLIBC__) || defined(__UCLIBC_HAS_MMU__) |
634 | if (daemon(0, 1) < 0) | 634 | if (daemon(0, 1) < 0) |
635 | perror_msg_and_die("daemon"); | 635 | perror_msg_and_die("daemon"); |