aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarfread.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-10-24 16:34:56 +0000
committerJohn Gilmore <gnu@cygnus>1991-10-24 16:34:56 +0000
commit313fdead0e74ca29e82574e344fcc8478e4c5e96 (patch)
treec2e4d4e7e12f9a459d79a378ac00bbed856cab94 /gdb/dwarfread.c
parent54154111c54fef603378217d4f13c3af20b6ce06 (diff)
downloadgdb-313fdead0e74ca29e82574e344fcc8478e4c5e96.zip
gdb-313fdead0e74ca29e82574e344fcc8478e4c5e96.tar.gz
gdb-313fdead0e74ca29e82574e344fcc8478e4c5e96.tar.bz2
Use <varargs.h>, since <stdarg.h> is not portable.
Diffstat (limited to 'gdb/dwarfread.c')
-rw-r--r--gdb/dwarfread.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c
index 6bb6c16..54323fd 100644
--- a/gdb/dwarfread.c
+++ b/gdb/dwarfread.c
@@ -65,7 +65,7 @@ other things to work on, if you get bored. :-)
*/
#include <stdio.h>
-#include <stdarg.h>
+#include <varargs.h>
#include <fcntl.h>
#include "defs.h"
@@ -607,11 +607,14 @@ NOTES
*/
static void
-DEFUN(dwarfwarn, (fmt), char *fmt DOTS)
+dwarfwarn (va_alist)
+ va_dcl
{
va_list ap;
+ char *fmt;
- va_start (ap, fmt);
+ va_start (ap);
+ fmt = va_arg (ap, char *);
warning_setup ();
fprintf (stderr, "DWARF warning (ref 0x%x): ", curdie -> dieref);
if (curdie -> at_name)