Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/mkesdb Properly use format string.



details:   https://anonhg.NetBSD.org/src/rev/7b0537e61451
branches:  trunk
changeset: 765334:7b0537e61451
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue May 24 12:35:36 2011 +0000

description:
Properly use format string.

diffstat:

 usr.bin/mkesdb/yacc.y |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 791efd626130 -r 7b0537e61451 usr.bin/mkesdb/yacc.y
--- a/usr.bin/mkesdb/yacc.y     Tue May 24 12:35:01 2011 +0000
+++ b/usr.bin/mkesdb/yacc.y     Tue May 24 12:35:36 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: yacc.y,v 1.4 2005/06/02 02:09:25 lukem Exp $   */
+/*     $NetBSD: yacc.y,v 1.5 2011/05/24 12:35:36 joerg Exp $   */
 
 %{
 /*-
@@ -33,7 +33,7 @@
 
 #include <sys/cdefs.h>
 #if !defined(lint)
-__RCSID("$NetBSD: yacc.y,v 1.4 2005/06/02 02:09:25 lukem Exp $");
+__RCSID("$NetBSD: yacc.y,v 1.5 2011/05/24 12:35:36 joerg Exp $");
 #endif /* not lint */
 
 #include <assert.h>
@@ -331,7 +331,7 @@
        case 1:
                in = fopen(argv[0], "r");
                if (!in)
-                       err(EXIT_FAILURE, argv[0]);
+                       err(EXIT_FAILURE, "%s", argv[0]);
                break;
        default:
                usage();



Home | Main Index | Thread Index | Old Index