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/libc/gen/setdomainname.c | |
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/libc/gen/setdomainname.c')
-rw-r--r-- | lib/libc/gen/setdomainname.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |