diff options
author | 2011-11-08 18:30:42 +0000 | |
---|---|---|
committer | 2011-11-08 18:30:42 +0000 | |
commit | e09d0be95caaadd968d2fda2f48b1b76b84cdf39 (patch) | |
tree | 0b373a5fcb58b80af186a23a1191a556a167aa98 /lib/libc/stdio/vsscanf.c | |
parent | ncr53c9x (a.k.a. esp on sparc64) does not like 16-byte SCSI commands (diff) | |
download | wireguard-openbsd-e09d0be95caaadd968d2fda2f48b1b76b84cdf39.tar.xz wireguard-openbsd-e09d0be95caaadd968d2fda2f48b1b76b84cdf39.zip |
Make __svfscanf() the unlocked, core of vfscanf() and use it in
sscanf()/vsscanf() where locking is unnecessary.
ok millert@
Diffstat (limited to 'lib/libc/stdio/vsscanf.c')
-rw-r--r-- | lib/libc/stdio/vsscanf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdio/vsscanf.c b/lib/libc/stdio/vsscanf.c index 47c1ae61d73..71eb7529879 100644 --- a/lib/libc/stdio/vsscanf.c +++ b/lib/libc/stdio/vsscanf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vsscanf.c,v 1.11 2006/01/06 18:53:04 millert Exp $ */ +/* $OpenBSD: vsscanf.c,v 1.12 2011/11/08 18:30:42 guenther Exp $ */ /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. @@ -55,5 +55,5 @@ vsscanf(const char *str, const char *fmt, __va_list ap) f._bf._size = f._r = strlen(str); f._read = eofread; f._lb._base = NULL; - return (vfscanf(&f, fmt, ap)); + return (__svfscanf(&f, fmt, ap)); } |