From 3b02a06bd6d4345b8aea0843f2bffe75ee05d056 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Fri, 8 Jul 2005 08:05:35 +0000 Subject: * callback.c: Remove ANSI_PROTOTYPES conditional code. * sim-load.c: Likewise. * syscall.c: Likewise. --- sim/common/sim-load.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'sim/common/sim-load.c') diff --git a/sim/common/sim-load.c b/sim/common/sim-load.c index 5fc4c98..c140beb 100644 --- a/sim/common/sim-load.c +++ b/sim/common/sim-load.c @@ -24,11 +24,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., #endif #include "ansidecl.h" #include /* for NULL */ -#ifdef ANSI_PROTOTYPES #include -#else -#include -#endif #ifdef HAVE_STDLIB_H #include #endif @@ -176,17 +172,11 @@ sim_load_file (sd, myname, callback, prog, prog_bfd, verbose_p, lma_p, do_write) static void xprintf VPARAMS ((host_callback *callback, const char *fmt, ...)) { -#ifndef ANSI_PROTOTYPES host_callback *callback; char *fmt; -#endif va_list ap; VA_START (ap, fmt); -#ifndef ANSI_PROTOTYPES - callback = va_arg (ap, host_callback *); - fmt = va_arg (ap, char *); -#endif (*callback->vprintf_filtered) (callback, fmt, ap); @@ -196,17 +186,11 @@ xprintf VPARAMS ((host_callback *callback, const char *fmt, ...)) static void eprintf VPARAMS ((host_callback *callback, const char *fmt, ...)) { -#ifndef ANSI_PROTOTYPES host_callback *callback; char *fmt; -#endif va_list ap; VA_START (ap, fmt); -#ifndef ANSI_PROTOTYPES - callback = va_arg (ap, host_callback *); - fmt = va_arg (ap, char *); -#endif (*callback->evprintf_filtered) (callback, fmt, ap); -- cgit v1.1