xref: /freebsd/sbin/ipf/libipf/initparse.c (revision 5e3190f700637fcfc1a52daeaa4a031fdd2557c7)
1 
2 /*
3  * Copyright (C) 2012 by Darren Reed.
4  *
5  * See the IPFILTER.LICENCE file for details on licencing.
6  *
7  * $Id$
8  */
9 #include "ipf.h"
10 
11 
12 char	thishost[MAXHOSTNAMELEN];
13 
14 
15 void initparse(void)
16 {
17 	gethostname(thishost, sizeof(thishost));
18 	thishost[sizeof(thishost) - 1] = '\0';
19 }
20