Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/gen Revert rev 1.4: fmtcheck(3) neglect unuse...
details: https://anonhg.NetBSD.org/src/rev/371fe604a3e7
branches: trunk
changeset: 358121:371fe604a3e7
user: rin <rin%NetBSD.org@localhost>
date: Wed Dec 13 06:47:04 2017 +0000
description:
Revert rev 1.4: fmtcheck(3) neglect unused trailing arguments as before.
"%d" is a valid format string with default format string "%d %s", etc.
diffstat:
tests/lib/libc/gen/t_fmtcheck.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (25 lines):
diff -r 6e5f35d74425 -r 371fe604a3e7 tests/lib/libc/gen/t_fmtcheck.c
--- a/tests/lib/libc/gen/t_fmtcheck.c Wed Dec 13 06:43:45 2017 +0000
+++ b/tests/lib/libc/gen/t_fmtcheck.c Wed Dec 13 06:47:04 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_fmtcheck.c,v 1.4 2017/12/07 09:37:33 kre Exp $ */
+/* $NetBSD: t_fmtcheck.c,v 1.5 2017/12/13 06:47:04 rin Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -65,13 +65,13 @@
{ "%-3", "%d", 2 },
{ "%d %s", "%d", 2 },
{ "%*.*.*d", "%*.*.*d", 2 },
- { "%d", "%d %s", 2 },
+ { "%d", "%d %s", 1 },
{ "%40s", "%20s", 1 },
{ "%x %x %x", "%o %u %d", 1 },
{ "%o %u %d", "%x %x %X", 1 },
{ "%#o %u %#-d", "%x %#x %X", 1 },
{ "%qd", "%llx", 1 },
- { "%%", "%llx", 2 },
+ { "%%", "%llx", 1 },
{ "%ld %30s %#llx %-10.*e", "This number %lu%% and string %s has %qd numbers and %.*g floats", 1 },
{ "%o", "%lx", 2 },
{ "%p", "%lu", 2 },
Home |
Main Index |
Thread Index |
Old Index