From: Denis Vlasenko Date: Thu, 7 Sep 2006 16:03:45 +0000 (-0000) Subject: fix if (ENABLE_FEATURE_SYSLOG & (...)) - should be && X-Git-Tag: 1_4_0~737 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b750dec40a4bf013f98658b46925117d9d1d4811;p=oweals%2Fbusybox.git fix if (ENABLE_FEATURE_SYSLOG & (...)) - should be && --- diff --git a/libbb/verror_msg.c b/libbb/verror_msg.c index be206e477..d55da73ff 100644 --- a/libbb/verror_msg.c +++ b/libbb/verror_msg.c @@ -32,7 +32,7 @@ void bb_verror_msg(const char *s, va_list p, const char* strerr) else fprintf(stderr, ": %s\n", strerr); } - if (ENABLE_FEATURE_SYSLOG & (logmode & LOGMODE_SYSLOG)) { + if (ENABLE_FEATURE_SYSLOG && (logmode & LOGMODE_SYSLOG)) { if (!strerr) vsyslog(LOG_ERR, s, p2); else { diff --git a/libbb/vinfo_msg.c b/libbb/vinfo_msg.c index 84825bc76..82fbda221 100644 --- a/libbb/vinfo_msg.c +++ b/libbb/vinfo_msg.c @@ -24,7 +24,7 @@ void bb_vinfo_msg(const char *s, va_list p) vprintf(s, p); putchar('\n'); } - if (ENABLE_FEATURE_SYSLOG & (logmode & LOGMODE_SYSLOG)) + if (ENABLE_FEATURE_SYSLOG && (logmode & LOGMODE_SYSLOG)) vsyslog(LOG_INFO, s, p2); va_end(p2); }