xref: /illumos-gate/usr/src/cmd/ipf/lib/initparse.c (revision 9b9d39d2a32ff806d2431dbcc50968ef1e6d46b2)
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