Submitted By: Jim Gifford (patches at jg555 dot com)
Date: 2003-06-02
Initial Package Version: 2.10
Origin: Jim Gifford
Description: Fixes GCC 3.3 Compile Errors

diff -Naur zoo-2.10.orig/prterror.c zoo-2.10/prterror.c
--- zoo-2.10.orig/prterror.c	1991-07-05 09:00:00.000000000 -0000
+++ zoo-2.10/prterror.c	2003-06-02 14:11:20.000000000 -0000
@@ -23,15 +23,7 @@
 # include <ctype.h>	/* for isdigit() */
 #endif
 
-#ifdef STDARG
-# include <stdarg.h>
-#else
-# ifdef VARARGS
-#  include <varargs.h>
-# else
-#  include "MUST DEFINE STDARG OR VARARGS"
-# endif
-#endif
+#include <stdarg.h>
 
 #ifdef NEED_VPRINTF
 static int zvfprintf();
@@ -115,29 +107,12 @@
 char could_not_open[] = "Could not open %s.\n";
 #endif
 
-#ifdef STDARG
-void prterror(int level, char *format, ...)
-#else
-/*VARARGS*/
-void prterror(va_alist)
-va_dcl
-#endif
+void prterror(level, format, a, b, c, d)
+register int level;
+char *format, *a, *b, *c, *d;
+
 {
-	va_list args;
    char string[120];       /* local format string */
-#ifdef VARARGS
-	int level;
-	char *format;
-#endif
-
-#ifdef STDARG
-	va_start(args, format);
-#else
-	va_start(args);
-	level = va_arg(args, int);
-	format = va_arg(args, char *);
-#endif
-
    *string = '\0';         /* get a null string to begin with */
 
 #ifdef OOZ
@@ -162,13 +137,9 @@
 
    strcat (string, format);      /* just append supplied format string */
 
-	/* and print the whole thing */
-#ifdef NEED_VPRINTF
-	(void) zvfprintf(stdout, string, args);
-#else
-   (void) vprintf(string, args);
-#endif
-	fflush (stdout);
+
+   printf (string, a, b, c, d);   /* and print the whole thing */
+        fflush (stdout);
 
    if (level == 'f')       /* and abort on fatal error 'f' but not 'F' */
       zooexit (1);

