summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Farfeleder <stefanf@FreeBSD.org>2005-09-10 13:54:42 +0000
committerStefan Farfeleder <stefanf@FreeBSD.org>2005-09-10 13:54:42 +0000
commit442a7dde61c5df0293ab8e65c7b90a2deb521f53 (patch)
treeb234dcdd142b02e459f4134b9844aabcdf3fefe0
parent16ca32b39f74d9e3e47f625d1c2d120ac11d7be6 (diff)
Notes
-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 55ad65854953..33f0ccf1f15f 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);
}