mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
Revert 1.10, bad mpech@ didn't try to compile.
This commit is contained in:
parent
cabedea73d
commit
f228564bc3
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: rbootd.c,v 1.11 2002/02/19 21:04:09 miod Exp $ */
|
||||
/* $OpenBSD: rbootd.c,v 1.12 2002/02/20 02:00:01 miod Exp $ */
|
||||
/* $NetBSD: rbootd.c,v 1.5 1995/10/06 05:12:17 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
@ -55,7 +55,7 @@ static char copyright[] =
|
||||
|
||||
#ifndef lint
|
||||
/*static char sccsid[] = "@(#)rbootd.c 8.1 (Berkeley) 6/4/93";*/
|
||||
static char rcsid[] = "$OpenBSD: rbootd.c,v 1.11 2002/02/19 21:04:09 miod Exp $";
|
||||
static char rcsid[] = "$OpenBSD: rbootd.c,v 1.12 2002/02/20 02:00:01 miod Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -184,7 +184,7 @@ main(argc, argv)
|
||||
/*
|
||||
* Grab our host name and pid.
|
||||
*/
|
||||
if (gethostname(MyHost, sizeof(MyHost)) < 0) {
|
||||
if (gethostname(MyHost, MAXHOSTNAMELEN) < 0) {
|
||||
syslog(LOG_ERR, "gethostname: %m");
|
||||
DoExit();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user