aboutsummaryrefslogtreecommitdiff
path: root/cddl/compat/opensolaris/misc/zone.c
diff options
context:
space:
mode:
Diffstat (limited to 'cddl/compat/opensolaris/misc/zone.c')
-rw-r--r--cddl/compat/opensolaris/misc/zone.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cddl/compat/opensolaris/misc/zone.c b/cddl/compat/opensolaris/misc/zone.c
index 1ce77cf5926e..9d48e6d970c1 100644
--- a/cddl/compat/opensolaris/misc/zone.c
+++ b/cddl/compat/opensolaris/misc/zone.c
@@ -32,7 +32,7 @@
#include <sys/sysctl.h>
#include <sys/zone.h>
-int
+zoneid_t
getzoneid(void)
{
size_t size;
@@ -42,5 +42,5 @@ getzoneid(void)
size = sizeof(jailid);
if (sysctlbyname("security.jail.jailed", &jailid, &size, NULL, 0) == -1)
assert(!"No security.jail.jailed sysctl!");
- return (jailid);
+ return ((zoneid_t)jailid);
}