aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2005-04-15 04:29:32 +0000
committerNeil Conway <neilc@samurai.com>2005-04-15 04:29:32 +0000
commit3fa790107048e3bd84a4c7f92b083810b0ed5f5f (patch)
treed39eb6d8099b53b682502de32e352620ee9ad1b9 /src
parentea208aca0044a1d72cf88fc372a128b89d4233cd (diff)
downloadpostgresql-3fa790107048e3bd84a4c7f92b083810b0ed5f5f.tar.gz
postgresql-3fa790107048e3bd84a4c7f92b083810b0ed5f5f.zip
This patch changes the use of varargs.h to stdarg.h as
required by modern versions of GCC. Niels Breet
Diffstat (limited to 'src')
-rw-r--r--src/tools/entab/halt.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/tools/entab/halt.c b/src/tools/entab/halt.c
index c7b9ab6bb95..d204d286780 100644
--- a/src/tools/entab/halt.c
+++ b/src/tools/entab/halt.c
@@ -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>
@@ -19,15 +19,14 @@
/*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);