$NetBSD: patch-af,v 1.1 2004/01/23 11:43:33 agc Exp $ --- ext2spice/ext2spice.c 2004/01/23 09:54:56 1.1 +++ ext2spice/ext2spice.c 2004/01/23 09:56:01 @@ -18,7 +18,7 @@ #include #include -#include +#include #include "misc/magic.h" #include "utils/malloc.h" #include "utils/geometry.h" @@ -1586,22 +1586,19 @@ } /* debugging stuff */ -#include +#include #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 );