OSDN Git Service

This patch changes the use of varargs.h to stdarg.h as
authorNeil Conway <neilc@samurai.com>
Fri, 15 Apr 2005 04:29:32 +0000 (04:29 +0000)
committerNeil Conway <neilc@samurai.com>
Fri, 15 Apr 2005 04:29:32 +0000 (04:29 +0000)
required by modern versions of GCC.

Niels Breet

src/tools/entab/halt.c

index c7b9ab6..d204d28 100644 (file)
@@ -5,7 +5,7 @@
 **             This is used to print out error messages and exit
 */
 
-#include <varargs.h>
+#include <stdarg.h>
 #include <signal.h>
 #include <stdio.h>
 #include <errno.h>
 
 /*VARARGS*/
 void
-halt(va_alist)
-va_dcl
+halt(const char *path, ...)
 {
        va_list         arg_ptr;
        char       *format,
                           *pstr;
        void            (*sig_func) ();
 
-       va_start(arg_ptr);
+       va_start(arg_ptr, path);
        format = va_arg(arg_ptr, char *);
        if (strncmp(format, "PERROR", 6) != 0)
                vfprintf(stderr, format, arg_ptr);