xref: /titanic_41/usr/src/cmd/ipf/lib/common/initparse.c (revision 7c2fbfb345896881c631598ee3852ce9ce33fb07)
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