summaryrefslogtreecommitdiff
path: root/usr.sbin/ypserv/mknetid
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2013-08-18 16:32:25 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2013-08-18 16:32:25 +0000
commitc815e7e7f81959a58647a866ebb0adde5e081aaa (patch)
treeb9f851173ad0d675547c8bd1b5f4849922111290 /usr.sbin/ypserv/mknetid
parent4bd15c9433e824a97938d7f64ece28c5b224206f (diff)
Fix calls to printf-like functions which passed a non-fixed string
as the format and no variable args. Replace "%#0.*X" with "%#.*X": the zero-fill flag is ignored/implied on numeric conversions when a precision is specified. ok jung@ millert@ krw@
Diffstat (limited to 'usr.sbin/ypserv/mknetid')
-rw-r--r--usr.sbin/ypserv/mknetid/mknetid.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ypserv/mknetid/mknetid.c b/usr.sbin/ypserv/mknetid/mknetid.c
index 3ba3ecf4d89..6dbbf3b876a 100644
--- a/usr.sbin/ypserv/mknetid/mknetid.c
+++ b/usr.sbin/ypserv/mknetid/mknetid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mknetid.c,v 1.18 2009/12/20 12:33:59 schwarze Exp $ */
+/* $OpenBSD: mknetid.c,v 1.19 2013/08/18 16:32:24 guenther Exp $ */
/*
* Copyright (c) 1996 Mats O Jansson <moj@stacken.kth.se>
@@ -522,15 +522,15 @@ main(int argc, char *argv[])
if (pfile == NULL)
pfile = fopen(MasterPasswdFile, "r");
if (pfile == NULL)
- err(1, MasterPasswdFile);
+ err(1, "%s", MasterPasswdFile);
gfile = fopen(GroupFile, "r");
if (gfile == NULL)
- err(1, GroupFile);
+ err(1, "%s", GroupFile);
hfile = fopen(HostFile, "r");
if (hfile == NULL)
- err(1, HostFile);
+ err(1, "%s", HostFile);
mfile = fopen(NetidFile, "r");