Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/gen Revert change made by rev 1.11; now, fmtcheck(3...



details:   https://anonhg.NetBSD.org/src/rev/5823ae94de50
branches:  trunk
changeset: 828421:5823ae94de50
user:      rin <rin%NetBSD.org@localhost>
date:      Wed Dec 13 06:43:45 2017 +0000

description:
Revert change made by rev 1.11; now, fmtcheck(3) does not complain about
unused trailing arguments as before.

See also discussion on tech-userland:
http://mail-index.netbsd.org/tech-userlevel/2017/12/07/msg011019.html

diffstat:

 lib/libc/gen/fmtcheck.c |  9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diffs (28 lines):

diff -r 0df2b6fa804d -r 5823ae94de50 lib/libc/gen/fmtcheck.c
--- a/lib/libc/gen/fmtcheck.c   Wed Dec 13 00:32:32 2017 +0000
+++ b/lib/libc/gen/fmtcheck.c   Wed Dec 13 06:43:45 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fmtcheck.c,v 1.15 2017/12/06 14:05:14 rin Exp $        */
+/*     $NetBSD: fmtcheck.c,v 1.16 2017/12/13 06:43:45 rin Exp $        */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fmtcheck.c,v 1.15 2017/12/06 14:05:14 rin Exp $");
+__RCSID("$NetBSD: fmtcheck.c,v 1.16 2017/12/13 06:43:45 rin Exp $");
 #endif
 
 #include "namespace.h"
@@ -344,8 +344,5 @@
                if (f1t != f2t)
                        return f2;
        }
-       if (get_next_format(&f2p, f2t) != FMTCHECK_DONE)
-               return f2;
-       else
-               return f1;
+       return f1;
 }



Home | Main Index | Thread Index | Old Index