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