From 05455b1b6e2413e8316940d47648a667c9dea9ed Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 25 Sep 2025 18:17:55 -0400 Subject: kern: mac: Make mac_map() return ssize_t The map callback within the MAC ops returns ssize_t, therefore the mac_map() wrapper should return the same Signed-off-by: Ian Moffett --- src/sys/os/os_mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sys/os/os_mac.c') diff --git a/src/sys/os/os_mac.c b/src/sys/os/os_mac.c index e86e848..898b476 100644 --- a/src/sys/os/os_mac.c +++ b/src/sys/os/os_mac.c @@ -59,7 +59,7 @@ mac_check_creds(struct proc *procp, struct mac_border *mbp) /* * Map a resource into process address space */ -int +ssize_t mac_map(struct mac_border *mbp, off_t off, size_t len, void **res, int flags) { struct mac_map_args args; -- cgit v1.2.3