diff options
author | alfred <alfred@FreeBSD.org> | 2002-05-28 17:03:12 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-05-28 17:03:12 +0000 |
commit | 1ee311b26d7122f860fe940db6ce46968981a9a3 (patch) | |
tree | 96c195652047b452e756960d6bdfc6786443c564 /lib/libc/stdio/asprintf.c | |
parent | ae40c00e1724fe7d6584623e3a953b6b44fc741f (diff) | |
download | FreeBSD-src-1ee311b26d7122f860fe940db6ce46968981a9a3.zip FreeBSD-src-1ee311b26d7122f860fe940db6ce46968981a9a3.tar.gz |
Assume __STDC__, remove non-__STDC__ code.
Submitted by: keramida
Diffstat (limited to 'lib/libc/stdio/asprintf.c')
-rw-r--r-- | lib/libc/stdio/asprintf.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/libc/stdio/asprintf.c b/lib/libc/stdio/asprintf.c index 276f86f..57116e6 100644 --- a/lib/libc/stdio/asprintf.c +++ b/lib/libc/stdio/asprintf.c @@ -33,33 +33,18 @@ __FBSDID("$FreeBSD$"); #include <stdio.h> #include <stdlib.h> #include <errno.h> -#if __STDC__ #include <stdarg.h> -#else -#include <varargs.h> -#endif #include "local.h" int -#if __STDC__ asprintf(char **str, char const *fmt, ...) -#else -asprintf(str, fmt, va_alist) - char **str; - const char *fmt; - va_dcl -#endif { int ret; va_list ap; FILE f; -#if __STDC__ va_start(ap, fmt); -#else - va_start(ap); -#endif f._file = -1; f._flags = __SWR | __SSTR | __SALC; f._bf._base = f._p = (unsigned char *)malloc(128); |