From 2935d1c22eeec8d9712b09f270c7d39f58f8780e Mon Sep 17 00:00:00 2001 From: Kevin Buettner Date: Tue, 29 Aug 2000 01:56:59 +0000 Subject: [PATCH] Protoization. --- gdb/ChangeLog | 4 ++++ gdb/gdbserver/utils.c | 30 ------------------------------ 2 files changed, 4 insertions(+), 30 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 44db6b146a2..0c9f2e99593 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2000-08-28 Kevin Buettner + + * gdbserver/utils.c (error, fatal): Protoize. + 2000-08-27 Mark Kettenis * i386-linux-nat.c (fetch_inferior_registers): Move call to diff --git a/gdb/gdbserver/utils.c b/gdb/gdbserver/utils.c index 2ad49e3791e..a22889c0489 100644 --- a/gdb/gdbserver/utils.c +++ b/gdb/gdbserver/utils.c @@ -56,33 +56,14 @@ perror_with_name (char *string) 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); } @@ -93,21 +74,10 @@ error (va_alist) /* 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"); -- 2.30.2