summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sys/include/os/mac.h2
-rw-r--r--src/sys/os/os_mac.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/sys/include/os/mac.h b/src/sys/include/os/mac.h
index dbc09eb..f6e2514 100644
--- a/src/sys/include/os/mac.h
+++ b/src/sys/include/os/mac.h
@@ -117,7 +117,7 @@ int mac_check_creds(struct proc *procp, struct mac_border *mbp);
* Returns zero on success, otherwise a less than zero value
* on failure.
*/
-int mac_map(struct mac_border *mbp, off_t off, size_t len, void **res, int flags);
+ssize_t mac_map(struct mac_border *mbp, off_t off, size_t len, void **res, int flags);
/*
* Acquire a specific border using an ID
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;