+2000-08-28 Kevin Buettner <kevinb@redhat.com>
+
+ * gdbserver/utils.c (error, fatal): Protoize.
+
2000-08-27 Mark Kettenis <kettenis@gnu.org>
* i386-linux-nat.c (fetch_inferior_registers): Move call to
STRING is the error message, used as a fprintf string,
and ARG is passed as an argument to it. */
-#ifdef ANSI_PROTOTYPES
NORETURN void
error (const char *string,...)
-#else
-void
-error (va_alist)
- va_dcl
-#endif
{
extern jmp_buf toplevel;
va_list args;
-#ifdef ANSI_PROTOTYPES
va_start (args, string);
-#else
- va_start (args);
-#endif
fflush (stdout);
-#ifdef ANSI_PROTOTYPES
vfprintf (stderr, string, args);
-#else
- {
- char *string1;
-
- string1 = va_arg (args, char *);
- vfprintf (stderr, string1, args);
- }
-#endif
fprintf (stderr, "\n");
longjmp (toplevel, 1);
}
/* VARARGS */
NORETURN void
-#ifdef ANSI_PROTOTYPES
fatal (char *string,...)
-#else
-fatal (va_alist)
- va_dcl
-#endif
{
va_list args;
-#ifdef ANSI_PROTOTYPES
va_start (args, string);
-#else
- char *string;
- va_start (args);
- string = va_arg (args, char *);
-#endif
fprintf (stderr, "gdb: ");
vfprintf (stderr, string, args);
fprintf (stderr, "\n");