Finish rename of KERN_DOMAINNAME to KERN_NISDOMAINNAME.

Suggested by: Keith Bostic
This commit is contained in:
Garrett Wollman 1996-07-25 18:03:53 +00:00
parent 949f380f38
commit 2b3a38f6e5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=17282
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);