* utils.c, complaints.c, language.c, monitor.c, remote-array.c,

remote-mips.c, remote-os9k.c, remote-st.c: Conditionalize use of
	stdarg rather than varargs on ANSI_PROTOTYPES not __STDC__; it
	must match the definition of PARAMS.
start-sanitize-gdbtk
        * gdbtk.c: Likewise.
end-sanitize-gdbtk
This commit is contained in:
Jim Kingdon
1995-05-19 14:15:48 +00:00
parent 85c613aaa7
commit 73d3dbd4e6
8 changed files with 35 additions and 25 deletions

View File

@@ -37,7 +37,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "gdbcore.h"
#include "target.h"
#include "wait.h"
#ifdef __STDC__
#ifdef ANSI_PROTOTYPES
#include <stdarg.h>
#else
#include <varargs.h>
@@ -90,7 +90,7 @@ static char readbuf[16];
/* Send data to monitor. Works just like printf. */
static void
#ifdef __STDC__
#ifdef ANSI_PROTOTYPES
printf_monitor(char *pattern, ...)
#else
printf_monitor(va_alist)
@@ -101,7 +101,7 @@ printf_monitor(va_alist)
char buf[200];
int i;
#ifdef __STDC__
#ifdef ANSI_PROTOTYPES
va_start (args, pattern);
#else
char *pattern;