diff options
author | wollman <wollman@FreeBSD.org> | 1996-07-25 18:03:53 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1996-07-25 18:03:53 +0000 |
commit | 3a02a94cc5249a020581c5b8c0b916bc70a8caa9 (patch) | |
tree | 29f335589ebfab2ae446f11a24bc7b53fd02b2ef /lib | |
parent | 8f0bdc1b4428bb5253095027d9459607d82d8b5c (diff) | |
download | FreeBSD-src-3a02a94cc5249a020581c5b8c0b916bc70a8caa9.zip FreeBSD-src-3a02a94cc5249a020581c5b8c0b916bc70a8caa9.tar.gz |
Finish rename of KERN_DOMAINNAME to KERN_NISDOMAINNAME.
Suggested by: Keith Bostic
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gen/getdomainname.c | 4 | ||||
-rw-r--r-- | lib/libc/gen/setdomainname.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/gen/getdomainname.c b/lib/libc/gen/getdomainname.c index 2d1da28..1aeeb4a 100644 --- a/lib/libc/gen/getdomainname.c +++ b/lib/libc/gen/getdomainname.c @@ -36,7 +36,7 @@ static char sccsid[] = "From: @(#)gethostname.c 8.1 (Berkeley) 6/4/93"; */ static const char rcsid[] = - "$Id: getdomainname.c,v 1.1 1994/08/08 00:40:23 wollman Exp $"; + "$Id: getdomainname.c,v 1.2 1996/07/12 19:55:19 wollman Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -53,7 +53,7 @@ getdomainname(name, namelen) size_t size; mib[0] = CTL_KERN; - mib[1] = KERN_DOMAINNAME; + mib[1] = KERN_NISDOMAINNAME; size = namelen; if (sysctl(mib, 2, name, &size, NULL, 0) == -1) return (-1); diff --git a/lib/libc/gen/setdomainname.c b/lib/libc/gen/setdomainname.c index 34c700d..453614e 100644 --- a/lib/libc/gen/setdomainname.c +++ b/lib/libc/gen/setdomainname.c @@ -36,7 +36,7 @@ static char sccsid[] = "From: @(#)sethostname.c 8.1 (Berkeley) 6/4/93"; */ static const char rcsid[] = - "$Id: setdomainname.c,v 1.1 1994/08/08 00:40:24 wollman Exp $"; + "$Id: setdomainname.c,v 1.2 1996/07/12 19:55:20 wollman Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -50,7 +50,7 @@ setdomainname(const char *name, int namelen) int mib[2]; mib[0] = CTL_KERN; - mib[1] = KERN_DOMAINNAME; + mib[1] = KERN_NISDOMAINNAME; if (sysctl(mib, 2, NULL, NULL, (void *)name, namelen) == -1) return (-1); return (0); |