diff --git a/usr.sbin/ypserv/mkalias/mkalias.c b/usr.sbin/ypserv/mkalias/mkalias.c index 922a4f9fd8e4..1ca2c2b8047a 100644 --- a/usr.sbin/ypserv/mkalias/mkalias.c +++ b/usr.sbin/ypserv/mkalias/mkalias.c @@ -1,4 +1,4 @@ -/* $NetBSD: mkalias.c,v 1.4 1997/10/13 03:48:49 lukem Exp $ */ +/* $NetBSD: mkalias.c,v 1.5 1997/11/04 11:43:49 lukem Exp $ */ /* * Copyright (c) 1997 Mats O Jansson @@ -33,7 +33,7 @@ #include #ifndef lint -__RCSID("$NetBSD: mkalias.c,v 1.4 1997/10/13 03:48:49 lukem Exp $"); +__RCSID("$NetBSD: mkalias.c,v 1.5 1997/11/04 11:43:49 lukem Exp $"); #endif #include @@ -52,6 +52,7 @@ __RCSID("$NetBSD: mkalias.c,v 1.4 1997/10/13 03:48:49 lukem Exp $"); #include +#include "protos.h" #include "ypdb.h" #include "ypdef.h" @@ -324,7 +325,7 @@ main(argc, argv) } if (new_db != NULL) { - gethostname(myname, sizeof(myname) - 1); + localhostname(myname, sizeof(myname) - 1); key.dptr = YP_MASTER_KEY; key.dsize = strlen(YP_MASTER_KEY); val.dptr = myname;