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