* h8300-dis.c: Fix formatting.
[binutils-gdb.git] / gdb / remote-rdp.c
index 9b6584d874a178227791880e2948cf0e9c644c52..09365ec88d91279972b50f26aa29c84bdb125576 100644 (file)
 
 #include "defs.h"
 #include "inferior.h"
-#include "wait.h"
+#include "gdb_wait.h"
 #include "value.h"
 #include "callback.h"
 #include "command.h"
-#ifdef ANSI_PROTOTYPES
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
 #include <ctype.h>
 #include <fcntl.h>
 #include "symfile.h"
 #include "remote-utils.h"
 #include "gdb_string.h"
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
 #include "gdbcore.h"
 
+#ifdef HAVE_TIME_H
+#include <time.h>
+#endif
 
 extern struct target_ops remote_rdp_ops;
 static serial_t io;
@@ -172,11 +167,10 @@ static int timeout = 2;
 static char *commandline = NULL;
 
 static int
-remote_rdp_xfer_inferior_memory PARAMS ((CORE_ADDR memaddr,
-                                        char *myaddr,
-                                        int len,
-                                        int write,
-                                        struct target_ops * target));
+remote_rdp_xfer_inferior_memory (CORE_ADDR memaddr,
+                                char *myaddr,
+                                int len,
+                                int write, struct target_ops *target);
 
 
 /* Stuff for talking to the serial layer. */
@@ -379,23 +373,13 @@ rdp_init (cold, tty)
 }
 
 
-#ifdef ANSI_PROTOTYPES
 void
 send_rdp (char *template,...)
-#else
-void
-send_rdp (char *template, va_alist)
-     va_dcl
-#endif
 {
   char buf[200];
   char *dst = buf;
   va_list alist;
-#ifdef ANSI_PROTOTYPES
   va_start (alist, template);
-#else
-  va_start (alist);
-#endif
 
   while (*template)
     {
@@ -495,7 +479,7 @@ send_rdp (char *template, va_alist)
          abort ();
        }
     }
-  va_end (args);
+  va_end (alist);
 
   if (dst != buf)
     abort ();