Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3fa7901

Browse files
author
Neil Conway
committed
This patch changes the use of varargs.h to stdarg.h as
required by modern versions of GCC. Niels Breet
1 parent ea208ac commit 3fa7901

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/tools/entab/halt.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
** This is used to print out error messages and exit
66
*/
77

8-
#include <varargs.h>
8+
#include <stdarg.h>
99
#include <signal.h>
1010
#include <stdio.h>
1111
#include <errno.h>
@@ -19,15 +19,14 @@
1919

2020
/*VARARGS*/
2121
void
22-
halt(va_alist)
23-
va_dcl
22+
halt(const char *path, ...)
2423
{
2524
va_list arg_ptr;
2625
char *format,
2726
*pstr;
2827
void (*sig_func) ();
2928

30-
va_start(arg_ptr);
29+
va_start(arg_ptr, path);
3130
format = va_arg(arg_ptr, char *);
3231
if (strncmp(format, "PERROR", 6) != 0)
3332
vfprintf(stderr, format, arg_ptr);

0 commit comments

Comments
 (0)