diff options
author | 2005-05-11 18:39:19 +0000 | |
---|---|---|
committer | 2005-05-11 18:39:19 +0000 | |
commit | 57bf79d243bf313e943427a2d0928512d49e1178 (patch) | |
tree | 3dd847a14ca5658bacb58de4506ea4fead5b7573 /lib/libc/stdio/sscanf.c | |
parent | use the ctype stuff in libc instead of re-rolling our own. (diff) | |
download | wireguard-openbsd-57bf79d243bf313e943427a2d0928512d49e1178.tar.xz wireguard-openbsd-57bf79d243bf313e943427a2d0928512d49e1178.zip |
let vfscanf be a real function. Use a weak_alias on systems where this
is feasible.
Okay millert@
There's a major libc bump coming that is going to cover this as well...
Diffstat (limited to 'lib/libc/stdio/sscanf.c')
-rw-r--r-- | lib/libc/stdio/sscanf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdio/sscanf.c b/lib/libc/stdio/sscanf.c index 0104e941e03..e8fea3ee68c 100644 --- a/lib/libc/stdio/sscanf.c +++ b/lib/libc/stdio/sscanf.c @@ -31,7 +31,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: sscanf.c,v 1.9 2005/04/30 09:25:17 espie Exp $"; +static char rcsid[] = "$OpenBSD: sscanf.c,v 1.10 2005/05/11 18:39:19 espie Exp $"; #endif /* LIBC_SCCS and not lint */ #include <stdio.h> @@ -63,7 +63,7 @@ sscanf(const char *str, const char *fmt, ...) _UB(&f)._base = NULL; f._lb._base = NULL; va_start(ap, fmt); - ret = __svfscanf(&f, fmt, ap); + ret = vfscanf(&f, fmt, ap); va_end(ap); return (ret); } |