NetBSD-5.0.2/dist/ipf/lib/initparse.c

Compare this file to the similar file:
Show the results in this format:

/*	$NetBSD: initparse.c,v 1.1.1.2 2007/04/14 20:17:31 martin Exp $	*/

/*
 * Copyright (C) 2000-2002 by Darren Reed.
 *
 * See the IPFILTER.LICENCE file for details on licencing.
 *
 * Id: initparse.c,v 1.6.4.1 2006/06/16 17:21:02 darrenr Exp
 */
#include "ipf.h"


char	thishost[MAXHOSTNAMELEN];


void initparse __P((void))
{
	gethostname(thishost, sizeof(thishost));
	thishost[sizeof(thishost) - 1] = '\0';
}