mirror of
https://github.com/tmux/tmux.git
synced 2024-11-04 18:08:48 +00:00
Fix rejects.
This commit is contained in:
parent
3eb1bfddd4
commit
8565ae234b
18
log.c
18
log.c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user