diff options
author | wollman <wollman@FreeBSD.org> | 1996-07-12 19:55:20 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1996-07-12 19:55:20 +0000 |
commit | 402ddcab4002628a12ebaa6aaabb9a6ece390e99 (patch) | |
tree | 8f9c9a5eebae24e3970119106c4d42ffe6982b93 /lib/libc/gen/getdomainname.c | |
parent | ce41b1b07a1f519ba23009c38d1ab9f26da8c043 (diff) | |
download | FreeBSD-src-402ddcab4002628a12ebaa6aaabb9a6ece390e99.zip FreeBSD-src-402ddcab4002628a12ebaa6aaabb9a6ece390e99.tar.gz |
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
Diffstat (limited to 'lib/libc/gen/getdomainname.c')
-rw-r--r-- | lib/libc/gen/getdomainname.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/gen/getdomainname.c b/lib/libc/gen/getdomainname.c index 990d9f3..2d1da28 100644 --- a/lib/libc/gen/getdomainname.c +++ b/lib/libc/gen/getdomainname.c @@ -36,13 +36,15 @@ static char sccsid[] = "From: @(#)gethostname.c 8.1 (Berkeley) 6/4/93"; */ static const char rcsid[] = - "$Id$"; + "$Id: getdomainname.c,v 1.1 1994/08/08 00:40:23 wollman Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> #include <sys/sysctl.h> -long +#include <unistd.h> + +int getdomainname(name, namelen) char *name; int namelen; |