Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/tcpdchk eliminate %m complexity. __format_arg__ thi...



details:   https://anonhg.NetBSD.org/src/rev/085982952787
branches:  trunk
changeset: 811150:085982952787
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Oct 14 15:50:48 2015 +0000

description:
eliminate %m complexity. __format_arg__ thinks it is handling a format for
printf, so it does not like %m.

diffstat:

 usr.sbin/tcpdchk/inetcf.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 555e5fdb3d13 -r 085982952787 usr.sbin/tcpdchk/inetcf.c
--- a/usr.sbin/tcpdchk/inetcf.c Wed Oct 14 15:44:57 2015 +0000
+++ b/usr.sbin/tcpdchk/inetcf.c Wed Oct 14 15:50:48 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: inetcf.c,v 1.9 2011/08/31 16:25:00 plunky Exp $        */
+/*     $NetBSD: inetcf.c,v 1.10 2015/10/14 15:50:48 christos Exp $     */
 
  /*
   * Routines to parse an inetd.conf or tlid.conf file. This would be a great
@@ -12,7 +12,7 @@
 #if 0
 static char sccsid[] = "@(#) inetcf.c 1.7 97/02/12 02:13:23";
 #else
-__RCSID("$NetBSD: inetcf.c,v 1.9 2011/08/31 16:25:00 plunky Exp $");
+__RCSID("$NetBSD: inetcf.c,v 1.10 2015/10/14 15:50:48 christos Exp $");
 #endif
 #endif
 
@@ -102,7 +102,7 @@
      */
     if (conf != 0) {
        if ((fp = fopen(conf, "r")) == 0) {
-           fprintf(stderr, percent_m(buf, "open %s: %m\n"), conf);
+           fprintf(stderr, "open %s: %s\n", conf, strerror(errno));
            exit(1);
        }
     } else {



Home | Main Index | Thread Index | Old Index