pkgsrc/sysutils/depot/patches/patch-ae
2003-12-15 16:19:43 +00:00

27 lines
656 B
Text

$NetBSD: patch-ae,v 1.1 2003/12/15 16:19:43 agc Exp $
--- src/lib/util/Error.c 2003/12/15 16:13:57 1.1
+++ src/lib/util/Error.c 2003/12/15 16:15:42
@@ -195,19 +195,14 @@
void
-__FatalError(va_alist)
-va_dcl
+__FatalError(int e, char *fmt, ...)
{
va_list ap;
- char *fmt;
- va_start(ap);
+ va_start(ap, fmt);
if (PROGRAM_ErrorNo == E_NULL)
- PROGRAM_ErrorNo = va_arg(ap, int);
- else
- (void) va_arg(ap, int); /* skip the first argument */
- fmt = va_arg(ap, char *);
+ PROGRAM_ErrorNo = e;
(void)fprintf(stderr,"Depot Error: %s:%d: ",__DepotErrorInfoFile,
__DepotErrorInfoLineNo);
(void)vfprintf(stderr, fmt, ap);