Change return type of {get,set}{domain,host}name() from long to int.

This commit is contained in:
jtc 1995-06-16 07:36:03 +00:00
parent 7d0e5e8589
commit 9c87841ac4
4 changed files with 14 additions and 14 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: getdomainname.c,v 1.2 1995/02/27 04:12:30 cgd Exp $ */
/* $NetBSD: getdomainname.c,v 1.3 1995/06/16 07:36:03 jtc Exp $ */
/*
* Copyright (c) 1989, 1993
@ -37,14 +37,14 @@
#if 0
static char sccsid[] = "@(#)gethostname.c 8.1 (Berkeley) 6/4/93";
#else
static char rcsid[] = "$NetBSD: getdomainname.c,v 1.2 1995/02/27 04:12:30 cgd Exp $";
static char rcsid[] = "$NetBSD: getdomainname.c,v 1.3 1995/06/16 07:36:03 jtc Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
#include <sys/sysctl.h>
long
int
getdomainname(name, namelen)
char *name;
int namelen;

View File

@ -1,4 +1,4 @@
/* $NetBSD: gethostname.c,v 1.2 1995/02/27 04:12:45 cgd Exp $ */
/* $NetBSD: gethostname.c,v 1.3 1995/06/16 07:36:13 jtc Exp $ */
/*
* Copyright (c) 1989, 1993
@ -37,14 +37,14 @@
#if 0
static char sccsid[] = "@(#)gethostname.c 8.1 (Berkeley) 6/4/93";
#else
static char rcsid[] = "$NetBSD: gethostname.c,v 1.2 1995/02/27 04:12:45 cgd Exp $";
static char rcsid[] = "$NetBSD: gethostname.c,v 1.3 1995/06/16 07:36:13 jtc Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
#include <sys/sysctl.h>
long
int
gethostname(name, namelen)
char *name;
int namelen;

View File

@ -1,4 +1,4 @@
/* $NetBSD: setdomainname.c,v 1.3 1995/03/04 01:55:49 cgd Exp $ */
/* $NetBSD: setdomainname.c,v 1.4 1995/06/16 07:36:18 jtc Exp $ */
/*
* Copyright (c) 1989, 1993
@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)sethostname.c 8.1 (Berkeley) 6/4/93";
#else
static char rcsid[] = "$NetBSD: setdomainname.c,v 1.3 1995/03/04 01:55:49 cgd Exp $";
static char rcsid[] = "$NetBSD: setdomainname.c,v 1.4 1995/06/16 07:36:18 jtc Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
@ -45,10 +45,10 @@ static char rcsid[] = "$NetBSD: setdomainname.c,v 1.3 1995/03/04 01:55:49 cgd Ex
#include <sys/sysctl.h>
#if __STDC__
long
int
setdomainname(const char *name, int namelen)
#else
long
int
setdomainname(name, namelen)
char *name;
int namelen;

View File

@ -1,4 +1,4 @@
/* $NetBSD: sethostname.c,v 1.3 1995/03/04 01:55:53 cgd Exp $ */
/* $NetBSD: sethostname.c,v 1.4 1995/06/16 07:36:21 jtc Exp $ */
/*
* Copyright (c) 1989, 1993
@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)sethostname.c 8.1 (Berkeley) 6/4/93";
#else
static char rcsid[] = "$NetBSD: sethostname.c,v 1.3 1995/03/04 01:55:53 cgd Exp $";
static char rcsid[] = "$NetBSD: sethostname.c,v 1.4 1995/06/16 07:36:21 jtc Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
@ -45,10 +45,10 @@ static char rcsid[] = "$NetBSD: sethostname.c,v 1.3 1995/03/04 01:55:53 cgd Exp
#include <sys/sysctl.h>
#if __STDC__
long
int
sethostname(const char *name, int namelen)
#else
long
int
sethostname(name, namelen)
char *name;
int namelen;