Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
pkg_abi_macho: fix printf warning
Baptiste Daroussin committed 1 year ago
commit 1ccf0a0511922d0678fc73875b28431b4ac48e5f
parent f5373fd
1 file changed +3 -3
modified libpkg/pkg_abi_macho.c
@@ -34,7 +34,7 @@
/**
 * Routines to support pkg_abi.c functions when dealing with Mach-O files.
 * Supports getting ABI and ALTABI from the binary's load commands. Cave: picks first binary in FAT collection.
-
 * Supports getting shared libary information. Picks right binary in FAT collection based on ABI. 
+
 * Supports getting shared libary information. Picks right binary in FAT collection based on ABI.
 * Supports FreeBSD naming of architectures.
 */

@@ -202,7 +202,7 @@ pkg_get_myarch_macho(int fd, char *dest, size_t sz, struct os_info *oi)
				break;
			}
			if (n - n0 != loadcmdsize) {
-
				printf("unprecise read %u != %u", n - n0,
+
				printf("unprecise read %u != %zu", n - n0,
				    loadcmdsize);
				errno = EINVAL;
				goto cleanup;
@@ -263,4 +263,4 @@ int pkg_analyse_macho(const bool developer_mode, struct pkg *pkg, const char *fp

int pkg_analyse_close_macho() {
	return EPKG_OK;
-
}

\ No newline at end of file
+
}