aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2000-08-29 01:56:59 +0000
committerKevin Buettner <kevinb@redhat.com>2000-08-29 01:56:59 +0000
commit2935d1c22eeec8d9712b09f270c7d39f58f8780e (patch)
treedacb819c4935d4e432fd893437194f7c8d7a4f30
parentf9365b11b5e89a9efcb5082d1224396391e177f5 (diff)
downloadgdb-2935d1c22eeec8d9712b09f270c7d39f58f8780e.zip
gdb-2935d1c22eeec8d9712b09f270c7d39f58f8780e.tar.gz
gdb-2935d1c22eeec8d9712b09f270c7d39f58f8780e.tar.bz2
Protoization.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/gdbserver/utils.c30
2 files changed, 4 insertions, 30 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 44db6b1..0c9f2e9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+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
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");