heimdal: Fix the 32-bit build on FreeBSD

Format string fixes that fail in the Samba build on a 32-bit machine

Signed-off-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
Volker Lendecke
2022-07-22 18:38:21 +02:00
committed by Jeffrey Altman
parent 603e673130
commit f4faaeaba3
5 changed files with 7 additions and 7 deletions

View File

@@ -830,7 +830,7 @@ template_object_set(IOSObjectSet *os, Field *typeidfield, Field *opentypefield)
}
free(objects);
tlist_header(tl, "{ 0, 0, ((void *)(uintptr_t)%lu) }", nobjs);
tlist_header(tl, "{ 0, 0, ((void *)(uintptr_t)%zu) }", nobjs);
tlist_print(tl);
tlist_add(tl);
os->symbol->emitted_template = 1;
@@ -970,7 +970,7 @@ template_members(struct templatehead *temp,
"{ A1_OP_NAME, %d, \"%s\" }", (int)m->val, m->name);
nmemb++;
}
tlist_header(tl, "{ 0, 0, ((void *)(uintptr_t)%lu) }", nmemb);
tlist_header(tl, "{ 0, 0, ((void *)(uintptr_t)%zu) }", nmemb);
/* XXX Accidentally O(N^2)? */
if (!tlist_find_dup(tl)) {
tlist_print(tl);