From ce921f2c55b557fa46c9b3937a56f1780d20d7df Mon Sep 17 00:00:00 2001 From: stefanf Date: Sat, 10 Sep 2005 13:54:42 +0000 Subject: The header and the man page say that sethostid() returns void, so make the definition match. Include . --- lib/libc/compat-43/sethostid.c | 8 ++++---- 1 file 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 #include -long +#include + +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); } -- cgit v1.1