sethostid() is documented and has historically returned int, not long
authortholo <tholo@openbsd.org>
Fri, 22 Mar 1996 07:37:29 +0000 (07:37 +0000)
committertholo <tholo@openbsd.org>
Fri, 22 Mar 1996 07:37:29 +0000 (07:37 +0000)
lib/libc/compat-43/sethostid.c

index 8122c81..fd7c0a5 100644 (file)
@@ -39,10 +39,10 @@ static char sccsid[] = "@(#)sethostid.c     8.1 (Berkeley) 6/2/93";
 #include <sys/sysctl.h>
 
 #if __STDC__
-long
+int
 sethostid(long hostid)
 #else
-long
+int
 sethostid(hostid)
        long hostid;
 #endif