From cdfecbb48f5ce53bb3428ca2355d972ef4dca1f1 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Wed, 24 Mar 2021 18:26:53 -0400 Subject: [PATCH] Use C.size_t instead of C.ulong This will avoid type mismatch issues for 32-bit arches which was earlier causing build failures for podman v3.1.0-rc2. Thanks to Luca Bruno for the review and patch simplification :) Signed-off-by: Lokesh Mandvekar --- sdjournal/journal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdjournal/journal.go b/sdjournal/journal.go index 344016eb..fb11b117 100644 --- a/sdjournal/journal.go +++ b/sdjournal/journal.go @@ -1155,7 +1155,7 @@ func (j *Journal) GetBootID() (string, error) { return "", err } - id128StringMax := C.ulong(C.SD_ID128_STRING_MAX) + id128StringMax := C.size_t(C.SD_ID128_STRING_MAX) c := (*C.char)(C.malloc(id128StringMax)) defer C.free(unsafe.Pointer(c)) C.my_sd_id128_to_string(sd_id128_to_string, boot_id, c)