1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/japanese/plain2/files/patch-src::macro.c
Kirill Ponomarev 70b27b37d1 - Fix build on -current
PR:		58221
Submitted by:	Ports Fury
2003-10-18 22:35:59 +00:00

32 lines
570 B
C

--- src/macro.c.orig Sat Oct 18 23:46:14 2003
+++ src/macro.c Sat Oct 18 23:47:36 2003
@@ -8,7 +8,7 @@
#include <stdio.h>
#include <ctype.h>
-#include <varargs.h>
+#include <stdarg.h>
#include "plain2.h"
#include "macro.h"
@@ -189,9 +189,7 @@
buf++;
}
}
-putMacro(macroNum, va_alist)
-int macroNum;
-va_dcl
+putMacro(int macroNum, char *fmt, ...)
{
va_list ap;
union macroArg {
@@ -226,7 +224,7 @@
}
mip = mip->cmac_next;
}
- va_start(ap);
+ va_start(ap, fmt);
for (i = 1; i <= maxarg; i++) {
switch(argtype[i]) {
case ATYPE_VOID: