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/sscanf.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/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 ca6b33c9e3c..e371ca693c1 100644 --- a/lib/libc/stdio/sscanf.c +++ b/lib/libc/stdio/sscanf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sscanf.c,v 1.13 2011/05/30 18:48:33 martynas Exp $ */ +/* $OpenBSD: sscanf.c,v 1.14 2011/11/08 18:30:42 guenther Exp $ */ /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. @@ -60,7 +60,7 @@ sscanf(const char *str, const char *fmt, ...) f._read = eofread; f._lb._base = NULL; va_start(ap, fmt); - ret = vfscanf(&f, fmt, ap); + ret = __svfscanf(&f, fmt, ap); va_end(ap); return (ret); } |