xref: /titanic_44/usr/src/cmd/ipf/lib/common/initparse.c (revision fb3fb4f3d76d55b64440afd0af72775dfad3bd1d)
1 /*
2  * Copyright (C) 1993-2001 by Darren Reed.
3  *
4  * See the IPFILTER.LICENCE file for details on licencing.
5  *
6  * $Id: initparse.c,v 1.6 2002/01/28 06:50:46 darrenr Exp $
7  */
8 #include "ipf.h"
9 
10 
11 char	thishost[MAXHOSTNAMELEN];
12 
13 
14 void initparse __P((void))
15 {
16 	gethostname(thishost, sizeof(thishost));
17 	thishost[sizeof(thishost) - 1] = '\0';
18 }
19