ansify new function definition

This commit is contained in:
darrenr 2012-07-22 16:26:56 +00:00
parent 30a942f180
commit 72926482fb
3 changed files with 9 additions and 15 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: fil.c,v 1.4 2012/07/22 16:13:16 darrenr Exp $ */
/* $NetBSD: fil.c,v 1.5 2012/07/22 16:26:56 darrenr Exp $ */
/*
* Copyright (C) 2012 by Darren Reed.
@ -138,7 +138,7 @@ extern struct timeout ipf_slowtimer_ch;
#if !defined(lint)
#if defined(__NetBSD__)
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: fil.c,v 1.4 2012/07/22 16:13:16 darrenr Exp $");
__KERNEL_RCSID(0, "$NetBSD: fil.c,v 1.5 2012/07/22 16:26:56 darrenr Exp $");
#else
static const char sccsid[] = "@(#)fil.c 1.36 6/5/96 (C) 1993-2000 Darren Reed";
static const char rcsid[] = "@(#)Id: fil.c,v 1.1.1.2 2012/07/22 13:45:07 darrenr Exp $";
@ -9775,9 +9775,7 @@ ipf_inet_mask_add(int bits, ipf_v4_masktab_t *mtab)
/* netmasks stored inside of mtab. */
/* ------------------------------------------------------------------------ */
void
ipf_inet_mask_del(bits, mtab)
int bits;
ipf_v4_masktab_t *mtab;
ipf_inet_mask_del(int bits, ipf_v4_masktab_t *mtab)
{
u_32_t mask;
int i, j;

View File

@ -1,4 +1,4 @@
/* $NetBSD: ip_dstlist.c,v 1.3 2012/07/22 14:27:51 darrenr Exp $ */
/* $NetBSD: ip_dstlist.c,v 1.4 2012/07/22 16:31:26 darrenr Exp $ */
/*
* Copyright (C) 2012 by Darren Reed.
@ -928,9 +928,7 @@ ipf_dstlist_table_remove(ipf_main_softc_t *softc, ipf_dstl_softc_t *softd,
/* the destination list. */
/* ------------------------------------------------------------------------ */
static void
ipf_dstlist_table_free(softd, d)
ipf_dstl_softc_t *softd;
ippool_dst_t *d;
ipf_dstlist_table_free(ipf_dstl_softc_t *softd, ippool_dst_t *d)
{
MUTEX_DESTROY(&d->ipld_lock);

View File

@ -1,4 +1,4 @@
/* $NetBSD: ip_proxy.c,v 1.4 2012/07/22 16:19:34 darrenr Exp $ */
/* $NetBSD: ip_proxy.c,v 1.5 2012/07/22 16:34:04 darrenr Exp $ */
/*
* Copyright (C) 2012 by Darren Reed.
@ -104,7 +104,7 @@ struct file;
#if !defined(lint)
#if defined(__NetBSD__)
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ip_proxy.c,v 1.4 2012/07/22 16:19:34 darrenr Exp $");
__KERNEL_RCSID(0, "$NetBSD: ip_proxy.c,v 1.5 2012/07/22 16:34:04 darrenr Exp $");
#else
static const char rcsid[] = "@(#)Id: ip_proxy.c,v 1.1.1.2 2012/07/22 13:45:33 darrenr Exp";
#endif
@ -1303,8 +1303,7 @@ ipf_proxy_fixseqack(fr_info_t *fin, ip_t *ip, ap_session_t *aps, int inc)
/* data connections with the PORT and EPRT commands. */
/* ------------------------------------------------------------------------ */
ipnat_t *
ipf_proxy_rule_rev(nat)
nat_t *nat;
ipf_proxy_rule_rev(nat_t *nat)
{
ipnat_t *old;
ipnat_t *ipn;
@ -1391,8 +1390,7 @@ ipf_proxy_rule_rev(nat)
/* used to support PORT/EPRT, this function supports PASV/EPSV. */
/* ------------------------------------------------------------------------ */
ipnat_t *
ipf_proxy_rule_fwd(nat)
nat_t *nat;
ipf_proxy_rule_fwd(nat_t *nat)
{
ipnat_t *old;
ipnat_t *ipn;