8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea208ac commit 3fa7901Copy full SHA for 3fa7901
src/tools/entab/halt.c
@@ -5,7 +5,7 @@
5
** This is used to print out error messages and exit
6
*/
7
8
-#include <varargs.h>
+#include <stdarg.h>
9
#include <signal.h>
10
#include <stdio.h>
11
#include <errno.h>
@@ -19,15 +19,14 @@
19
20
/*VARARGS*/
21
void
22
-halt(va_alist)
23
-va_dcl
+halt(const char *path, ...)
24
{
25
va_list arg_ptr;
26
char *format,
27
*pstr;
28
void (*sig_func) ();
29
30
- va_start(arg_ptr);
+ va_start(arg_ptr, path);
31
format = va_arg(arg_ptr, char *);
32
if (strncmp(format, "PERROR", 6) != 0)
33
vfprintf(stderr, format, arg_ptr);
0 commit comments