xref: /freebsd/sbin/ipf/libipf/initparse.c (revision 02e9120893770924227138ba49df1edb3896112a)
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