summaryrefslogtreecommitdiff
path: root/cad/magic/files/patch-ext2spice::ext2spice.c
diff options
context:
space:
mode:
authorOliver Lehmann <oliver@FreeBSD.org>2003-12-09 16:20:31 +0000
committerOliver Lehmann <oliver@FreeBSD.org>2003-12-09 16:20:31 +0000
commit785e2e9f0fab62af36d2b6e1b3b0af35e8e74536 (patch)
tree37fb4721b801e734fdcfb1c1f6c79463e6ed201e /cad/magic/files/patch-ext2spice::ext2spice.c
parentUpdate to version 0.38. (diff)
unbreak build on CURRENT
bump PORTREVISION
Notes
Notes: svn path=/head/; revision=95479
Diffstat (limited to 'cad/magic/files/patch-ext2spice::ext2spice.c')
-rw-r--r--cad/magic/files/patch-ext2spice::ext2spice.c46
1 files changed, 46 insertions, 0 deletions
diff --git a/cad/magic/files/patch-ext2spice::ext2spice.c b/cad/magic/files/patch-ext2spice::ext2spice.c
new file mode 100644
index 000000000000..60a74a6979f3
--- /dev/null
+++ b/cad/magic/files/patch-ext2spice::ext2spice.c
@@ -0,0 +1,46 @@
+--- ext2spice/ext2spice.c.orig Tue Dec 9 16:53:56 2003
++++ ext2spice/ext2spice.c Tue Dec 9 16:55:34 2003
+@@ -18,7 +18,7 @@
+
+ #include <stdio.h>
+ #include <ctype.h>
+-#include <varargs.h>
++#include <stdarg.h>
+ #include "misc/magic.h"
+ #include "utils/malloc.h"
+ #include "utils/geometry.h"
+@@ -316,7 +316,7 @@
+ #ifdef free_all_mem
+ EFFlatDone();
+ EFDone();
+-#endif free_all_mem
++#endif
+
+ printf("Memory used: %s\n", RunStats(RS_MEM, NULL, NULL));
+ exit (0);
+@@ -1586,22 +1586,19 @@
+ }
+
+ /* debugging stuff */
+-#include <varargs.h>
++#include <stdarg.h>
+
+ #define DBG 1
+
+-DBPRINT( va_alist )
+- va_dcl
++DBPRINT( char *fmt, ... )
+ {
+ va_list args;
+- char *fmt;
+ FILE *fp;
+ char buff[ 300 ];
+
+ if ( DBG ) {
+- va_start( args );
++ va_start( args, fmt );
+ fp = stderr ;
+- fmt = va_arg( args, char * );
+ (void) vsprintf( buff, fmt, args );
+ va_end( args );
+