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