xref: /netbsd-src/external/bsd/ipf/dist/lib/initparse.c (revision 13885a665959c62f13a82b3caedf986eaa17aa31)
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 
initparse(void)16 void initparse __P((void))
17 {
18 	gethostname(thishost, sizeof(thishost));
19 	thishost[sizeof(thishost) - 1] = '\0';
20 }
21