From 1ee311b26d7122f860fe940db6ce46968981a9a3 Mon Sep 17 00:00:00 2001 From: alfred Date: Tue, 28 May 2002 17:03:12 +0000 Subject: Assume __STDC__, remove non-__STDC__ code. Submitted by: keramida --- lib/libc/stdio/sprintf.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'lib/libc/stdio/sprintf.c') diff --git a/lib/libc/stdio/sprintf.c b/lib/libc/stdio/sprintf.c index 075ac63..7b81c1f 100644 --- a/lib/libc/stdio/sprintf.c +++ b/lib/libc/stdio/sprintf.c @@ -41,23 +41,12 @@ static char sccsid[] = "@(#)sprintf.c 8.1 (Berkeley) 6/4/93"; __FBSDID("$FreeBSD$"); #include -#if __STDC__ #include -#else -#include -#endif #include #include "local.h" int -#if __STDC__ sprintf(char *str, char const *fmt, ...) -#else -sprintf(str, fmt, va_alist) - char *str; - char *fmt; - va_dcl -#endif { int ret; va_list ap; @@ -67,11 +56,7 @@ sprintf(str, fmt, va_alist) f._flags = __SWR | __SSTR; f._bf._base = f._p = (unsigned char *)str; f._bf._size = f._w = INT_MAX; -#if __STDC__ va_start(ap, fmt); -#else - va_start(ap); -#endif ret = __vfprintf(&f, fmt, ap); va_end(ap); *f._p = 0; -- cgit v1.1