summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypserv
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-08-18 16:32:23 +0000
committerguenther <guenther@openbsd.org>2013-08-18 16:32:23 +0000
commit8aac6f43ce0c7c287846f699b04a3d7d488046a7 (patch)
tree13ff35a18d13810cddfa4c4e77848113e9f8e358 /usr.sbin/ypserv
parentsync (diff)
downloadwireguard-openbsd-8aac6f43ce0c7c287846f699b04a3d7d488046a7.tar.xz
wireguard-openbsd-8aac6f43ce0c7c287846f699b04a3d7d488046a7.zip
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')
-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");