git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ea208ac)
This patch changes the use of varargs.h to stdarg.h as
2005年4月15日 04:29:32 +0000 (04:29 +0000)
2005年4月15日 04:29:32 +0000 (04:29 +0000)
required by modern versions of GCC.

Niels Breet


diff --git a/src/tools/entab/halt.c b/src/tools/entab/halt.c
index c7b9ab6bb95429942bf0d4d274c3e3499946b54e..d204d28678095e1e5f1b41a0e5034113b0c7c5b2 100644 (file)
--- 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);
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /