Mercurial > masqmail
diff src/log.c @ 15:f671821d8222
code beautifying; 0 -> \0 if appropriate
author | meillo@marmaro.de |
---|---|
date | Thu, 06 Nov 2008 09:18:38 +0100 |
parents | 26e34ae9a3e3 |
children | e507c854a63e |
line wrap: on
line diff
--- a/src/log.c Wed Oct 29 21:21:26 2008 +0100 +++ b/src/log.c Thu Nov 06 09:18:38 2008 +0100 @@ -16,9 +16,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "masqmail.h" +#include <sysexits.h> -#include "sysexits.h" +#include "masqmail.h" static char *_sysexit_strings[] = { "command line usage error", @@ -109,8 +109,7 @@ void vlogwrite(int pri, const char *fmt, va_list args) { - if ((conf.do_verbose && (pri & LOG_VERBOSE)) || (pri == LOG_ALERT) - || (pri == LOG_WARNING)) { + if ((conf.do_verbose && (pri & LOG_VERBOSE)) || (pri == LOG_ALERT) || (pri == LOG_WARNING)) { va_list args_copy; va_copy(args_copy, args); vfprintf(stdout, fmt, args_copy); @@ -120,7 +119,6 @@ pri &= ~LOG_VERBOSE; if (pri) { - if (conf.use_syslog) vsyslog(pri, fmt, args); else { @@ -159,7 +157,6 @@ if (debugfile) { fprintf(debugfile, "%s [%d] ", buf, getpid()); - vfprintf(debugfile, fmt, args); fflush(debugfile); } else {