diff options
Diffstat (limited to 'cad/magic/patches/patch-ai')
-rw-r--r-- | cad/magic/patches/patch-ai | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/cad/magic/patches/patch-ai b/cad/magic/patches/patch-ai new file mode 100644 index 00000000000..76da088a510 --- /dev/null +++ b/cad/magic/patches/patch-ai @@ -0,0 +1,30 @@ +$NetBSD: patch-ai,v 1.1 2004/01/23 11:43:33 agc Exp $ + +--- extflat/EFread.c 2004/01/23 09:58:12 1.1 ++++ extflat/EFread.c 2004/01/23 09:59:29 +@@ -24,7 +24,7 @@ + #include <stdio.h> + #include <ctype.h> + #include <stdlib.h> +-#include <varargs.h> ++#include <stdarg.h> + #include "misc/magic.h" + #include "utils/geometry.h" + #include "utils/hash.h" +@@ -534,14 +534,12 @@ + */ + + /*VARARGS1*/ +-efReadError(fmt, va_alist) +- char *fmt; +- va_dcl ++efReadError(char *fmt, ...) + { + va_list args; + + (void) printf("%s, line %d: ", efReadFileName, efReadLineNum); +- va_start(args); ++ va_start(args, fmt); + vfprintf(stdout, fmt, args); + va_end(args); + (void) fflush(stdout); |