Module Name:    src
Committed By:   christos
Date:           Wed Oct 14 15:50:48 UTC 2015

Modified Files:
        src/usr.sbin/tcpdchk: inetcf.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/usr.sbin/tcpdchk/inetcf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/tcpdchk/inetcf.c
diff -u src/usr.sbin/tcpdchk/inetcf.c:1.9 src/usr.sbin/tcpdchk/inetcf.c:1.10
--- src/usr.sbin/tcpdchk/inetcf.c:1.9	Wed Aug 31 12:25:00 2011
+++ src/usr.sbin/tcpdchk/inetcf.c	Wed Oct 14 11:50:48 2015
@@ -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 @@ char   *conf;
      */
     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 {

Reply via email to