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