summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/vfscanf.c
diff options
context:
space:
mode:
authormartynas <martynas@openbsd.org>2011-07-03 17:57:47 +0000
committermartynas <martynas@openbsd.org>2011-07-03 17:57:47 +0000
commite2114f6dde16fe54ebba3cc12c265ea2d83a227b (patch)
treefc2c1ac101f888db600dfbff82672a0c398ed0c4 /lib/libc/stdio/vfscanf.c
parentavoid void * pointer arithmetic (diff)
downloadwireguard-openbsd-e2114f6dde16fe54ebba3cc12c265ea2d83a227b.tar.xz
wireguard-openbsd-e2114f6dde16fe54ebba3cc12c265ea2d83a227b.zip
Recognize %a, %A format specifiers, per C99.
Diffstat (limited to 'lib/libc/stdio/vfscanf.c')
-rw-r--r--lib/libc/stdio/vfscanf.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/libc/stdio/vfscanf.c b/lib/libc/stdio/vfscanf.c
index ef682365224..16bbbbfc126 100644
--- a/lib/libc/stdio/vfscanf.c
+++ b/lib/libc/stdio/vfscanf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfscanf.c,v 1.26 2011/07/03 05:16:59 martynas Exp $ */
+/* $OpenBSD: vfscanf.c,v 1.27 2011/07/03 17:57:47 martynas Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
@@ -239,12 +239,10 @@ literal:
break;
#ifdef FLOATING_POINT
- case 'E':
- case 'G':
- case 'e':
- case 'f':
- case 'F':
- case 'g':
+ case 'e': case 'E':
+ case 'f': case 'F':
+ case 'g': case 'G':
+ case 'a': case 'A':
c = CT_FLOAT;
break;
#endif