xref: /netbsd-src/external/bsd/ipf/dist/lib/initparse.c (revision 181254a7b1bdde6873432bffef2d2decc4b5c22f)
1 /*	$NetBSD: initparse.c,v 1.2 2012/07/22 14:27:36 darrenr Exp $	*/
2 
3 /*
4  * Copyright (C) 2012 by Darren Reed.
5  *
6  * See the IPFILTER.LICENCE file for details on licencing.
7  *
8  * Id: initparse.c,v 1.1.1.2 2012/07/22 13:44:38 darrenr Exp $
9  */
10 #include "ipf.h"
11 
12 
13 char	thishost[MAXHOSTNAMELEN];
14 
15 
16 void initparse __P((void))
17 {
18 	gethostname(thishost, sizeof(thishost));
19 	thishost[sizeof(thishost) - 1] = '\0';
20 }
21