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/snprintf.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'lib/libc/stdio/snprintf.c') diff --git a/lib/libc/stdio/snprintf.c b/lib/libc/stdio/snprintf.c index 0a09bac..e3e71f2 100644 --- a/lib/libc/stdio/snprintf.c +++ b/lib/libc/stdio/snprintf.c @@ -42,25 +42,12 @@ __FBSDID("$FreeBSD$"); #include #include -#if __STDC__ #include -#else -#include -#endif #include "local.h" -#if __STDC__ int snprintf(char *str, size_t n, char const *fmt, ...) -#else -int -snprintf(str, n, fmt, va_alist) - char *str; - size_t n; - char *fmt; - va_dcl -#endif { size_t on; int ret; @@ -72,11 +59,7 @@ snprintf(str, n, fmt, va_alist) n--; if (n > INT_MAX) n = INT_MAX; -#if __STDC__ va_start(ap, fmt); -#else - va_start(ap); -#endif f._file = -1; f._flags = __SWR | __SSTR; f._bf._base = f._p = (unsigned char *)str; -- cgit v1.1