aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-array.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1995-05-19 14:15:48 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1995-05-19 14:15:48 +0000
commit73d3dbd4e6ab70e29986e6d706b548cdc39c3531 (patch)
treee92f2ef9b4f6876084444922f3c5668832617f09 /gdb/remote-array.c
parent85c613aaa7092f8dfc8ce0c475e0ef210685bc16 (diff)
downloadfsf-binutils-gdb-73d3dbd4e6ab70e29986e6d706b548cdc39c3531.zip
fsf-binutils-gdb-73d3dbd4e6ab70e29986e6d706b548cdc39c3531.tar.gz
fsf-binutils-gdb-73d3dbd4e6ab70e29986e6d706b548cdc39c3531.tar.bz2
* 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
Diffstat (limited to 'gdb/remote-array.c')
-rw-r--r--gdb/remote-array.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/remote-array.c b/gdb/remote-array.c
index dc1c464..b7a9f4c 100644
--- a/gdb/remote-array.c
+++ b/gdb/remote-array.c
@@ -28,7 +28,7 @@
#include "gdbcore.h"
#include "target.h"
#include "wait.h"
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
#include <stdarg.h>
#else
#include <varargs.h>
@@ -173,7 +173,7 @@ Specify the serial device it is connected to (e.g. /dev/ttya).",
* printf_monitor -- send data to monitor. Works just like printf.
*/
static void
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
printf_monitor(char *pattern, ...)
#else
printf_monitor(va_alist)
@@ -184,7 +184,7 @@ printf_monitor(va_alist)
char buf[PBUFSIZ];
int i;
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
va_start(args, pattern);
#else
char *pattern;
@@ -224,7 +224,7 @@ write_monitor(data, len)
* to be formatted and printed. A CR is added after each string is printed.
*/
static void
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
debuglogs(int level, char *pattern, ...)
#else
debuglogs(va_alist)
@@ -237,7 +237,7 @@ debuglogs(va_alist)
char newbuf[PBUFSIZ];
int i;
-#ifdef __STDC__
+#ifdef ANSI_PROTOTYPES
va_start(args, pattern);
#else
char *pattern;