aboutsummaryrefslogtreecommitdiff
path: root/libiberty/snprintf.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2005-03-28 05:07:08 +0000
committerDJ Delorie <dj@redhat.com>2005-03-28 05:07:08 +0000
commit1e45deed6a87c05c9e669e3cdfdda47cbfa9531d (patch)
treee2c1bba3c03c5917c8e70792a921dfc6b6b5eef9 /libiberty/snprintf.c
parent49b1fae4309ab5b9833f0af388483c2b6b4b3d50 (diff)
downloadgdb-1e45deed6a87c05c9e669e3cdfdda47cbfa9531d.zip
gdb-1e45deed6a87c05c9e669e3cdfdda47cbfa9531d.tar.gz
gdb-1e45deed6a87c05c9e669e3cdfdda47cbfa9531d.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/snprintf.c')
-rw-r--r--libiberty/snprintf.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/libiberty/snprintf.c b/libiberty/snprintf.c
index 8916469..d8eb585 100644
--- a/libiberty/snprintf.c
+++ b/libiberty/snprintf.c
@@ -41,18 +41,13 @@ this function is used.
#include "ansidecl.h"
-#ifdef ANSI_PROTOTYPES
#include <stdarg.h>
#include <stddef.h>
-#else
-#include <varargs.h>
-#define size_t unsigned long
-#endif
-int vsnprintf PARAMS ((char *, size_t, const char *, va_list));
+int vsnprintf (char *, size_t, const char *, va_list);
int
-snprintf VPARAMS ((char *s, size_t n, const char *format, ...))
+snprintf (char *s, size_t n, const char *format, ...)
{
int result;
VA_OPEN (ap, format);