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/scanf.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/scanf.c')
-rw-r--r-- | lib/libc/stdio/scanf.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/libc/stdio/scanf.c b/lib/libc/stdio/scanf.c index 98cd4e2..990c9b0 100644 --- a/lib/libc/stdio/scanf.c +++ b/lib/libc/stdio/scanf.c @@ -42,32 +42,17 @@ __FBSDID("$FreeBSD$"); #include "namespace.h" #include <stdio.h> -#if __STDC__ #include <stdarg.h> -#else -#include <varargs.h> -#endif #include "un-namespace.h" #include "libc_private.h" -#if __STDC__ int scanf(char const *fmt, ...) -#else -int -scanf(fmt, va_alist) - char *fmt; - va_dcl -#endif { int ret; va_list ap; -#if __STDC__ va_start(ap, fmt); -#else - va_start(ap); -#endif FLOCKFILE(stdin); ret = __svfscanf(stdin, fmt, ap); FUNLOCKFILE(stdin); |