diff options
| author | wiz <wiz@NetBSD.org> | 2002-05-26 14:43:59 +0000 |
|---|---|---|
| committer | wiz <wiz@NetBSD.org> | 2002-05-26 14:43:59 +0000 |
| commit | 3fb28eec1f0ef05fee55cc6fb876fd8414ca7de2 (patch) | |
| tree | 6278601a38e0f5c2f353dcdb834e91cab025e3bc /lib/libc/stdio/printf.c | |
| parent | 94a6bb8164fe5282cc97c8a5cdf9261e9db1f416 (diff) | |
__STDC__ is always defined on NetBSD.
Diffstat (limited to 'lib/libc/stdio/printf.c')
| -rw-r--r-- | lib/libc/stdio/printf.c | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/lib/libc/stdio/printf.c b/lib/libc/stdio/printf.c index aab554ccc5b..90162998998 100644 --- a/lib/libc/stdio/printf.c +++ b/lib/libc/stdio/printf.c @@ -1,4 +1,4 @@ -/* $NetBSD: printf.c,v 1.8 1999/09/20 04:39:31 lukem Exp $ */ +/* $NetBSD: printf.c,v 1.9 2002/05/26 14:43:59 wiz Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -41,37 +41,22 @@ #if 0 static char sccsid[] = "@(#)printf.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: printf.c,v 1.8 1999/09/20 04:39:31 lukem Exp $"); +__RCSID("$NetBSD: printf.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__ printf(char const *fmt, ...) -#else -printf(fmt, va_alist) - char *fmt; - va_dcl -#endif { int ret; va_list ap; - -#if __STDC__ va_start(ap, fmt); -#else - va_start(ap); -#endif ret = vfprintf(stdout, fmt, ap); va_end(ap); return (ret); |
