diff options
author | Martynas Venckus <martynas@cvs.openbsd.org> | 2011-06-20 13:33:48 +0000 |
---|---|---|
committer | Martynas Venckus <martynas@cvs.openbsd.org> | 2011-06-20 13:33:48 +0000 |
commit | 653323693d816678cb3a8a2cb1499e5bfc56350c (patch) | |
tree | 19ad0172dced25cf935ef3fb991cc04cbe290242 /usr.bin/xlint | |
parent | 4c9b921df6d814702c74fda7c53604b365995037 (diff) |
Teach lint about %F, %A, %a format specifiers.
OK millert@.
Diffstat (limited to 'usr.bin/xlint')
-rw-r--r-- | usr.bin/xlint/lint2/chk.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/xlint/lint2/chk.c b/usr.bin/xlint/lint2/chk.c index 6954ada4ad0..0ceb418d271 100644 --- a/usr.bin/xlint/lint2/chk.c +++ b/usr.bin/xlint/lint2/chk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: chk.c,v 1.23 2011/06/20 13:29:09 millert Exp $ */ +/* $OpenBSD: chk.c,v 1.24 2011/06/20 13:33:47 martynas Exp $ */ /* $NetBSD: chk.c,v 1.2 1995/07/03 21:24:42 cgd Exp $ */ /* @@ -33,7 +33,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: chk.c,v 1.23 2011/06/20 13:29:09 millert Exp $"; +static char rcsid[] = "$OpenBSD: chk.c,v 1.24 2011/06/20 13:33:47 martynas Exp $"; #endif #include <stdlib.h> @@ -867,8 +867,10 @@ printflike(hte_t *hte, fcall_t *call, int n, const char *fmt, type_t **ap) } else { goto uint_conv; } - } else if (fc == 'f' || fc == 'e' || fc == 'E' || - fc == 'g' || fc == 'G') { + } else if (fc == 'e' || fc == 'E' || + fc == 'f' || fc == 'F' || + fc == 'g' || fc == 'G' || + fc == 'a' || fc == 'A') { if (sz == NOTSPEC) sz = DOUBLE; if (sz != DOUBLE && sz != LDOUBLE) |