Convert ipfilter userland function declarations from K&R to ANSI. This syncs our function declarations with NetBSD hg commit 75edcd7552a0 (apply our changes). Though not copied from NetBSD, this change was partially inspired by NetBSD's work and inspired by style(9). Reviewed by: glebius (for #network) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D33595
47 lines
645 B
C
47 lines
645 B
C
/*
|
|
* Copyright (C) 2012 by Darren Reed.
|
|
*
|
|
* See the IPFILTER.LICENCE file for details on licencing.
|
|
*/
|
|
|
|
#include "ipf.h"
|
|
|
|
|
|
void
|
|
printunit(int unit)
|
|
{
|
|
|
|
switch (unit)
|
|
{
|
|
case IPL_LOGIPF :
|
|
PRINTF("ipf");
|
|
break;
|
|
case IPL_LOGNAT :
|
|
PRINTF("nat");
|
|
break;
|
|
case IPL_LOGSTATE :
|
|
PRINTF("state");
|
|
break;
|
|
case IPL_LOGAUTH :
|
|
PRINTF("auth");
|
|
break;
|
|
case IPL_LOGSYNC :
|
|
PRINTF("sync");
|
|
break;
|
|
case IPL_LOGSCAN :
|
|
PRINTF("scan");
|
|
break;
|
|
case IPL_LOGLOOKUP :
|
|
PRINTF("lookup");
|
|
break;
|
|
case IPL_LOGCOUNT :
|
|
PRINTF("count");
|
|
break;
|
|
case IPL_LOGALL :
|
|
PRINTF("all");
|
|
break;
|
|
default :
|
|
PRINTF("unknown(%d)", unit);
|
|
}
|
|
}
|