Fix rejects.

This commit is contained in:
Nicholas Marriott 2009-06-25 16:23:35 +00:00
parent 3eb1bfddd4
commit 8565ae234b

18
log.c
View File

@ -1,4 +1,4 @@
/* $Id: log.c,v 1.14 2009-06-25 16:21:32 nicm Exp $ */
/* $Id: log.c,v 1.15 2009-06-25 16:23:35 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -81,17 +81,6 @@ log_close(void)
log_type = LOG_TYPE_OFF;
}
/* Write a log message. */
void
log_write(int pri, const char *msg, ...)
{
va_list ap;
va_start(ap, msg);
log_vwrite(pri, msg, ap);
va_end(ap);
}
/* Write a log message. */
void
log_vwrite(int pri, const char *msg, va_list ap)
@ -100,11 +89,6 @@ log_vwrite(int pri, const char *msg, va_list ap)
FILE *f = log_file;
switch (log_type) {
case LOG_TYPE_SYSLOG:
#ifdef HAVE_VSYSLOG
vsyslog(pri, msg, ap);
#endif
break;
case LOG_TYPE_TTY:
if (pri == LOG_INFO)
f = stdout;