summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/fprintf.c
diff options
context:
space:
mode:
authorwiz <wiz@NetBSD.org>2002-05-26 14:43:59 +0000
committerwiz <wiz@NetBSD.org>2002-05-26 14:43:59 +0000
commit3fb28eec1f0ef05fee55cc6fb876fd8414ca7de2 (patch)
tree6278601a38e0f5c2f353dcdb834e91cab025e3bc /lib/libc/stdio/fprintf.c
parent94a6bb8164fe5282cc97c8a5cdf9261e9db1f416 (diff)
__STDC__ is always defined on NetBSD.
Diffstat (limited to 'lib/libc/stdio/fprintf.c')
-rw-r--r--lib/libc/stdio/fprintf.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/lib/libc/stdio/fprintf.c b/lib/libc/stdio/fprintf.c
index dc6850f7707..41aeadcc20c 100644
--- a/lib/libc/stdio/fprintf.c
+++ b/lib/libc/stdio/fprintf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: fprintf.c,v 1.8 1999/09/20 04:39:27 lukem Exp $ */
+/* $NetBSD: fprintf.c,v 1.9 2002/05/26 14:43:59 wiz Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -41,28 +41,17 @@
#if 0
static char sccsid[] = "@(#)fprintf.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: fprintf.c,v 1.8 1999/09/20 04:39:27 lukem Exp $");
+__RCSID("$NetBSD: fprintf.c,v 1.9 2002/05/26 14:43:59 wiz Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
#include <assert.h>
#include <errno.h>
-#include <stdio.h>
-#if __STDC__
#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
+#include <stdio.h>
int
-#if __STDC__
fprintf(FILE *fp, const char *fmt, ...)
-#else
-fprintf(fp, fmt, va_alist)
- FILE *fp;
- char *fmt;
- va_dcl
-#endif
{
int ret;
va_list ap;
@@ -70,11 +59,7 @@ fprintf(fp, fmt, va_alist)
_DIAGASSERT(fp != NULL);
_DIAGASSERT(fmt != NULL);
-#if __STDC__
va_start(ap, fmt);
-#else
- va_start(ap);
-#endif
ret = vfprintf(fp, fmt, ap);
va_end(ap);
return (ret);