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