summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormartynas <martynas@openbsd.org>2008-09-08 17:04:20 +0000
committermartynas <martynas@openbsd.org>2008-09-08 17:04:20 +0000
commitf02bf21bbbe7c1686756c5f522ab3a4300590851 (patch)
tree3d1f5e04fc0d4a670b37a72dff55936b246536a2
parentprevent mustek from attaching as uhid. ok theo, sthen@ (diff)
downloadwireguard-openbsd-f02bf21bbbe7c1686756c5f522ab3a4300590851.tar.xz
wireguard-openbsd-f02bf21bbbe7c1686756c5f522ab3a4300590851.zip
enable support for %a, %A, %F. ok theo
-rw-r--r--usr.bin/printf/printf.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/printf/printf.c b/usr.bin/printf/printf.c
index 0084a4a5e5a..3e2d7891805 100644
--- a/usr.bin/printf/printf.c
+++ b/usr.bin/printf/printf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: printf.c,v 1.13 2008/06/19 16:24:00 millert Exp $ */
+/* $OpenBSD: printf.c,v 1.14 2008/09/08 17:04:20 martynas Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
@@ -39,7 +39,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)printf.c 5.9 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$OpenBSD: printf.c,v 1.13 2008/06/19 16:24:00 millert Exp $";
+static char rcsid[] = "$OpenBSD: printf.c,v 1.14 2008/09/08 17:04:20 martynas Exp $";
#endif /* not lint */
#include <ctype.h>
@@ -218,9 +218,12 @@ main(int argc, char *argv[])
PF(f, p);
break;
}
+ case 'a':
+ case 'A':
case 'e':
case 'E':
case 'f':
+ case 'F':
case 'g':
case 'G': {
double p = getdouble();