use the va_ macros so that BitchX now compiles on Alpha; from FreeBSD

This commit is contained in:
brad 1999-09-27 01:41:50 +00:00
parent 4c8bfcd5cf
commit 02c199834d
2 changed files with 39 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.7 1999/09/21 17:49:24 brad Exp $
# $OpenBSD: Makefile,v 1.8 1999/09/27 01:41:50 brad Exp $
# $FreeBSD: Makefile,v 1.3 1998/07/21 11:38:44 eivind Exp $
DISTNAME= ircii-pana-75p3
@ -11,10 +11,6 @@ NEED_VERSION= 1.114
MAINTAINER= brad@openbsd.org
.if ${MACHINE_ARCH} == "alpha"
BROKEN= "Currently does not build on Alpha"
.endif
GNU_CONFIGURE= yes
WRKSRC= ${WRKDIR}/BitchX

View File

@ -0,0 +1,38 @@
--- source/misc.c.orig Sun Sep 26 21:24:43 1999
+++ source/misc.c Sun Sep 26 21:26:28 1999
@@ -4332,7 +4332,7 @@
#define MAX_RECURSE 5
#define RECURSE_CPARSE
-char *convert_output_format_raw(const char *format, const char *str, va_list args)
+char *convert_output_format_raw(const char *format, const char *str, ...)
{
static unsigned char buffer[MAX_RECURSE*BIG_BUFFER_SIZE+1];
char buffer2[3*BIG_BUFFER_SIZE+1];
@@ -4344,7 +4344,7 @@
int old_who_level = who_level;
int bold = 0;
extern int in_chelp;
-/*va_list args;*/
+va_list args;
int arg_flags;
char color_mod[] = "kbgcrmywKBGCRMYWn";
@@ -4362,7 +4362,7 @@
{
p = (char *)str;
-/* va_start(args, str);*/
+ va_start(args, str);
while(p && *p)
{
if (*p == '%')
@@ -4433,7 +4433,7 @@
p++;
}
}
-/* va_end(args);*/
+ va_end(args);
}
else if (str)
strcpy(buffer2, str);