summaryrefslogtreecommitdiffstats
path: root/lib/libc/compat-43
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/compat-43')
-rw-r--r--lib/libc/compat-43/sethostid.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/compat-43/sethostid.c b/lib/libc/compat-43/sethostid.c
index 55ad658..33f0ccf 100644
--- a/lib/libc/compat-43/sethostid.c
+++ b/lib/libc/compat-43/sethostid.c
@@ -40,14 +40,14 @@ __FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/sysctl.h>
-long
+#include <unistd.h>
+
+void
sethostid(long hostid)
{
int mib[2];
mib[0] = CTL_KERN;
mib[1] = KERN_HOSTID;
- if (sysctl(mib, 2, NULL, NULL, &hostid, sizeof hostid) == -1)
- return (-1);
- return (0);
+ sysctl(mib, 2, NULL, NULL, &hostid, sizeof hostid);
}
OpenPOWER on IntegriCloud