diff options
author | Kevin Buettner <kevinb@redhat.com> | 2000-08-29 01:56:59 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2000-08-29 01:56:59 +0000 |
commit | 2935d1c22eeec8d9712b09f270c7d39f58f8780e (patch) | |
tree | dacb819c4935d4e432fd893437194f7c8d7a4f30 /gdb/gdbserver | |
parent | f9365b11b5e89a9efcb5082d1224396391e177f5 (diff) | |
download | gdb-2935d1c22eeec8d9712b09f270c7d39f58f8780e.zip gdb-2935d1c22eeec8d9712b09f270c7d39f58f8780e.tar.gz gdb-2935d1c22eeec8d9712b09f270c7d39f58f8780e.tar.bz2 |
Protoization.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/utils.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/gdb/gdbserver/utils.c b/gdb/gdbserver/utils.c index 2ad49e3..a22889c 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"); |