summaryrefslogtreecommitdiffstats
path: root/usr.sbin/services_mkdb
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2010-04-04 15:21:09 +0000
committerume <ume@FreeBSD.org>2010-04-04 15:21:09 +0000
commit297bb949719df5c703f6f042c8f6b00d2d09cf04 (patch)
tree4adb088b6a9b2ec3038c135e7a761cfce8b1ab6e /usr.sbin/services_mkdb
parent6b4bef1bca4df32af447cc3bd048188556c784ff (diff)
downloadFreeBSD-src-297bb949719df5c703f6f042c8f6b00d2d09cf04.zip
FreeBSD-src-297bb949719df5c703f6f042c8f6b00d2d09cf04.tar.gz
Fix compilation error on amd64.
Reported by: stefanf MFC after: 2 weeks
Diffstat (limited to 'usr.sbin/services_mkdb')
-rw-r--r--usr.sbin/services_mkdb/services_mkdb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/services_mkdb/services_mkdb.c b/usr.sbin/services_mkdb/services_mkdb.c
index 8cc97ea..f4cf62a 100644
--- a/usr.sbin/services_mkdb/services_mkdb.c
+++ b/usr.sbin/services_mkdb/services_mkdb.c
@@ -219,7 +219,7 @@ parseservices(const char *fname, StringList *sl)
line = 0;
if ((svc = calloc(PMASK + 1, sizeof(StringList **))) == NULL)
- err(1, "Cannot allocate %zu bytes", PMASK + 1);
+ err(1, "Cannot allocate %zu bytes", (size_t)(PMASK + 1));
/* XXX: change NULL to "\0\0#" when fparseln fixed */
for (; (p = fparseln(fp, &len, &line, NULL, 0)) != NULL; free(p)) {
@@ -271,7 +271,8 @@ parseservices(const char *fname, StringList *sl)
if (svc[pnum] == NULL) {
svc[pnum] = calloc(PROTOMAX, sizeof(StringList *));
if (svc[pnum] == NULL)
- err(1, "Cannot allocate %zu bytes", PROTOMAX);
+ err(1, "Cannot allocate %zu bytes",
+ (size_t)PROTOMAX);
}
pindex = getprotoindex(sl, proto);
OpenPOWER on IntegriCloud