diff options
author | Max Khon <fjoe@FreeBSD.org> | 2003-10-27 20:49:26 +0000 |
---|---|---|
committer | Max Khon <fjoe@FreeBSD.org> | 2003-10-27 20:49:26 +0000 |
commit | c13d460af0787081fd35957b79c2e1de31be7c8e (patch) | |
tree | d75b13fa34fcccb4457f7b625a27613f05040d8f /net/rwhois/files/patch-common-rw_log.c | |
parent | use USE_MYSQL (diff) |
Fix build on -CURRENT.
Use DOCSDIR.
Bump PORTREVISION.
Notes
Notes:
svn path=/head/; revision=92353
Diffstat (limited to 'net/rwhois/files/patch-common-rw_log.c')
-rw-r--r-- | net/rwhois/files/patch-common-rw_log.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/net/rwhois/files/patch-common-rw_log.c b/net/rwhois/files/patch-common-rw_log.c new file mode 100644 index 000000000000..3807b136a551 --- /dev/null +++ b/net/rwhois/files/patch-common-rw_log.c @@ -0,0 +1,38 @@ +--- common/rw_log.c.orig Tue Oct 28 02:28:43 2003 ++++ common/rw_log.c Tue Oct 28 02:30:14 2003 +@@ -17,13 +17,10 @@ + #include "types.h" + + void +-log(va_alist) +- va_dcl ++log(internal_log_levels level, int section, char *format, ...) + { + va_list ap; +- internal_log_levels level; + FILE *fp; +- char *format; + char *filename; + char *hostname; + char message[MAX_LINE]; +@@ -31,13 +28,9 @@ + char *section_name; + int fd; + int use_syslog; +- int section; + int syslog_level; + +- va_start(ap); +- level = (internal_log_levels) va_arg(ap, int); +- section = (int) va_arg(ap, int); +- format = va_arg(ap, char*); ++ va_start(ap, format); + + /* verbosity sets the level at which we ignore log messages */ + if (level > get_verbosity()) +@@ -142,4 +135,5 @@ + + fclose(fp); + } ++ va_end(ap); + } |