diff options
author | Matt Kraai <kraai@debian.org> | 2001-12-20 23:13:26 +0000 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2001-12-20 23:13:26 +0000 |
commit | 1f0c43668ac332cbcf61cbdf71844799327cc8b9 (patch) | |
tree | 97414e991363fa613f229019d697280cae1097e0 /sysklogd | |
parent | 31c73af656813b5cadcb1dd27adb9bbc62a98987 (diff) | |
download | busybox-1f0c43668ac332cbcf61cbdf71844799327cc8b9.tar.gz |
Remove `== TRUE' tests and convert `!= TRUE' and `== FALSE' tests to use !.
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) } } - if (doFork == TRUE) { + if (doFork) { #if !defined(__UCLIBC__) || defined(__UCLIBC_HAS_MMU__) if (daemon(0, 1) < 0) 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, ...) fl.l_len = 1; #ifdef CONFIG_FEATURE_IPC_SYSLOG - if ((circular_logging == TRUE) && (buf != NULL)){ + if ((circular_logging) && (buf != NULL)){ char b[1024]; va_start (arguments, fmt); vsprintf (b, fmt, arguments); @@ -366,7 +366,7 @@ static const int IOV_COUNT = 2; "%s:%d",RemoteHost,RemotePort); } } - if (local_logging == TRUE) + if (local_logging) #endif /* now spew out the message to wherever it is supposed to go */ message("%s %s %s %s\n", timestamp, LocalHostName, res, msg); @@ -519,13 +519,13 @@ static void doSyslogd (void) FD_SET (sock_fd, &fds); #ifdef CONFIG_FEATURE_IPC_SYSLOG - if (circular_logging == TRUE ){ + if (circular_logging ){ ipcsyslog_init(); } #endif #ifdef CONFIG_FEATURE_REMOTE_LOG - if (doRemoteLog == TRUE){ + if (doRemoteLog){ init_RemoteLog(); } #endif @@ -616,7 +616,7 @@ extern int syslogd_main(int argc, char **argv) #ifdef CONFIG_FEATURE_REMOTE_LOG /* If they have not specified remote logging, then log locally */ - if (doRemoteLog == FALSE) + if (! doRemoteLog) local_logging = TRUE; #endif @@ -629,7 +629,7 @@ extern int syslogd_main(int argc, char **argv) umask(0); - if (doFork == TRUE) { + if (doFork) { #if !defined(__UCLIBC__) || defined(__UCLIBC_HAS_MMU__) if (daemon(0, 1) < 0) perror_msg_and_die("daemon"); |