aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/gen/setdomainname.c
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>1996-07-12 19:55:20 +0000
committerGarrett Wollman <wollman@FreeBSD.org>1996-07-12 19:55:20 +0000
commitfba5b1cc9777dbe10a839d58450bce9a0d961b65 (patch)
tree8f9c9a5eebae24e3970119106c4d42ffe6982b93 /lib/libc/gen/setdomainname.c
parent7e5eded8709a4bef47d28367a920e2110d132955 (diff)
downloadsrc-fba5b1cc9777dbe10a839d58450bce9a0d961b65.tar.gz
src-fba5b1cc9777dbe10a839d58450bce9a0d961b65.zip
Include the proper header file (<unistd.h>) and declare [gs]etdomainname()
with the correct return type. This does not include the renaming of KERN_DOMAINNAME to KERN_NISDOMAINNAME. Pointed-out-by: Keith Bostic
Notes
Notes: svn path=/head/; revision=17145
Diffstat (limited to 'lib/libc/gen/setdomainname.c')
-rw-r--r--lib/libc/gen/setdomainname.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/lib/libc/gen/setdomainname.c b/lib/libc/gen/setdomainname.c
index 6471762f4abe..34c700dc6d35 100644
--- a/lib/libc/gen/setdomainname.c
+++ b/lib/libc/gen/setdomainname.c
@@ -36,21 +36,16 @@
static char sccsid[] = "From: @(#)sethostname.c 8.1 (Berkeley) 6/4/93";
*/
static const char rcsid[] =
- "$Id$";
+ "$Id: setdomainname.c,v 1.1 1994/08/08 00:40:24 wollman Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
#include <sys/sysctl.h>
-#if __STDC__
-long
+#include <unistd.h>
+
+int
setdomainname(const char *name, int namelen)
-#else
-long
-setdomainname(name, namelen)
- char *name;
- int namelen;
-#endif
{
int mib[2];