ipfilter: ansify

Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Mateusz Guzik 2023-02-13 18:05:57 +00:00
parent afca197f52
commit ec6b282218
5 changed files with 13 additions and 21 deletions

View File

@ -924,8 +924,7 @@ ipf_fastroute(mb_t *m0, mb_t **mpp, fr_info_t *fin, frdest_t *fdp)
int
ipf_verifysrc(fin)
fr_info_t *fin;
ipf_verifysrc(fr_info_t *fin)
{
struct nhop_object *nh;
@ -1010,8 +1009,7 @@ ipf_ifpaddr(ipf_main_softc_t *softc, int v, int atype, void *ifptr,
u_32_t
ipf_newisn(fin)
fr_info_t *fin;
ipf_newisn(fr_info_t *fin)
{
u_32_t newiss;
newiss = arc4random();

View File

@ -266,9 +266,7 @@ ipf_p_ftp_setpending(ipf_main_softc_t *softc, ftpinfo_t *ftp)
void
ipf_p_ftp_del(softc, aps)
ipf_main_softc_t *softc;
ap_session_t *aps;
ipf_p_ftp_del(ipf_main_softc_t *softc, ap_session_t *aps)
{
ftpinfo_t *ftp;

View File

@ -177,9 +177,7 @@ ipf_htable_soft_destroy(ipf_main_softc_t *softc, void *arg)
/* Initialise the hash table ready for use. */
/* ------------------------------------------------------------------------ */
static int
ipf_htable_soft_init(softc, arg)
ipf_main_softc_t *softc;
void *arg;
ipf_htable_soft_init(ipf_main_softc_t *softc, void *arg)
{
ipf_htable_softc_t *softh = arg;

View File

@ -4551,9 +4551,7 @@ ipf_checkicmp6matchingstate(fr_info_t *fin)
/* Initialise the array of timeout queues for TCP. */
/* ------------------------------------------------------------------------ */
void
ipf_sttab_init(softc, tqp)
ipf_main_softc_t *softc;
ipftq_t *tqp;
ipf_sttab_init(ipf_main_softc_t *softc, ipftq_t *tqp)
{
int i;

View File

@ -542,14 +542,14 @@ ipfclose(dev_t dev, int flags)
* called during packet processing and cause an inconsistancy to appear in
* the filter lists.
*/
#ifdef __FreeBSD__
static int ipfread(struct cdev *dev, struct uio *uio, int ioflag)
#else
static int ipfread(dev, uio, ioflag)
int ioflag;
#ifdef __FreeBSD__
struct cdev *dev;
#else
dev_t dev;
#endif
struct uio *uio;
#endif
{
int error;
int unit = GET_MINOR(dev);
@ -585,14 +585,14 @@ static int ipfread(dev, uio, ioflag)
* called during packet processing and cause an inconsistancy to appear in
* the filter lists.
*/
#ifdef __FreeBSD__
static int ipfwrite(struct cdev *dev, struct uio *uio, int ioflag)
#else
static int ipfwrite(dev, uio, ioflag)
int ioflag;
#ifdef __FreeBSD__
struct cdev *dev;
#else
dev_t dev;
#endif
struct uio *uio;
#endif
{
int error;