diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2007-04-24 05:56:39 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2007-04-24 05:56:39 +0000 |
commit | fe39c2ed7846c3778b13a864017617b8f473d38e (patch) | |
tree | 428cbc9de9d9a42afa1b9674a65d43184310e91e /net/vncreflector | |
parent | b3f404d96434e5ef11e2261b9ec706820a44a877 (diff) | |
download | ports-fe39c2ed7846c3778b13a864017617b8f473d38e.tar.gz ports-fe39c2ed7846c3778b13a864017617b8f473d38e.zip |
Notes
Diffstat (limited to 'net/vncreflector')
-rw-r--r-- | net/vncreflector/Makefile | 2 | ||||
-rw-r--r-- | net/vncreflector/files/patch-logging.c | 46 |
2 files changed, 47 insertions, 1 deletions
diff --git a/net/vncreflector/Makefile b/net/vncreflector/Makefile index ae0660d0b795..b83e9350e5a9 100644 --- a/net/vncreflector/Makefile +++ b/net/vncreflector/Makefile @@ -7,7 +7,7 @@ PORTNAME= vncreflector PORTVERSION= 1.2.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR=vnc-reflector diff --git a/net/vncreflector/files/patch-logging.c b/net/vncreflector/files/patch-logging.c new file mode 100644 index 000000000000..060e4d5d8a70 --- /dev/null +++ b/net/vncreflector/files/patch-logging.c @@ -0,0 +1,46 @@ + +$FreeBSD$ + +--- logging.c ++++ logging.c +@@ -10,7 +10,7 @@ + * This software was authored by Constantin Kaplinsky <const@ce.cctpu.edu.ru> + * and sponsored by HorizonLive.com, Inc. + * +- * $Id: logging.c,v 1.1 2007/04/24 05:32:17 root Exp $ ++ * $Id: logging.c,v 1.5 2003/04/21 17:20:35 const Exp $ + * Logging implementation + */ + +@@ -138,8 +138,6 @@ + char time_buf[32]; + char level_char = ' '; + +- va_start(arg_list, format); +- + if ( (log_fp != NULL && level <= log_file_level) || + level <= log_stderr_level ) { + now = time(NULL); +@@ -150,18 +148,21 @@ + + if (level <= log_file_level) { + fprintf(log_fp, "%s %c ", time_buf, (int)level_char); ++ va_start(arg_list, format); + vfprintf(log_fp, format, arg_list); ++ va_end(arg_list); + fprintf(log_fp, "\n"); + fflush(log_fp); + } + if (level <= log_stderr_level) { + fprintf(stderr, "%s %c ", time_buf, (int)level_char); ++ va_start(arg_list, format); + vfprintf(stderr, format, arg_list); ++ va_end(arg_list); + fprintf(stderr, "\n"); + fflush(stderr); + } + } + +- va_end(arg_list); + } + |