summaryrefslogtreecommitdiffstats
path: root/libiberty/_doprnt.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2005-03-27 05:28:42 +0000
committerDJ Delorie <dj@redhat.com>2005-03-27 05:28:42 +0000
commit9334f9c6cd576128ec4fc891b5fcf267a7fca7fb (patch)
treefda195cba89e4178623ea39866f41e6e28eb67c1 /libiberty/_doprnt.c
parent8da8e0b3f397df66d6e1c03470f4e6c31a63d292 (diff)
downloadppe42-binutils-9334f9c6cd576128ec4fc891b5fcf267a7fca7fb.tar.gz
ppe42-binutils-9334f9c6cd576128ec4fc891b5fcf267a7fca7fb.zip
merge from gcc
Diffstat (limited to 'libiberty/_doprnt.c')
-rw-r--r--libiberty/_doprnt.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/libiberty/_doprnt.c b/libiberty/_doprnt.c
index 8ce14158c9..804b939778 100644
--- a/libiberty/_doprnt.c
+++ b/libiberty/_doprnt.c
@@ -21,11 +21,7 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "safe-ctype.h"
#include <stdio.h>
-#ifdef ANSI_PROTOTYPES
#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
#ifdef HAVE_STRING_H
#include <string.h>
#endif
@@ -79,10 +75,7 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
} while (0)
int
-_doprnt (format, ap, stream)
- const char * format;
- va_list ap;
- FILE * stream;
+_doprnt (const char *format, va_list ap, FILE *stream)
{
const char * ptr = format;
char specifier[128];
@@ -223,10 +216,10 @@ _doprnt (format, ap, stream)
fflush(stdin); \
} while (0)
-static int checkit PARAMS ((const char * format, ...)) ATTRIBUTE_PRINTF_1;
+static int checkit (const char * format, ...) ATTRIBUTE_PRINTF_1;
static int
-checkit VPARAMS ((const char* format, ...))
+checkit (const char* format, ...)
{
int result;
VA_OPEN (args, format);
@@ -239,7 +232,7 @@ checkit VPARAMS ((const char* format, ...))
}
int
-main ()
+main (void)
{
RESULT(checkit ("<%d>\n", 0x12345678));
RESULT(printf ("<%d>\n", 0x12345678));
OpenPOWER on IntegriCloud