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
This commit is contained in:
Garrett Wollman 1996-07-12 19:55:20 +00:00
parent 7e5eded870
commit fba5b1cc97
2 changed files with 8 additions and 11 deletions

View File

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

View File

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