freebsd-dev/sbin/ipf/libipf/vtof.c
Cy Schubert 2582ae5740 ipfilter: Adjust userland returns to conform to style(9)
Adjust ipfilter's userland return statements to conform to style(9).

MFC after:	1 month
2022-01-03 18:06:43 -08:00

16 lines
198 B
C

#include "ipf.h"
int
vtof(int version)
{
#ifdef USE_INET6
if (version == 6)
return(AF_INET6);
#endif
if (version == 4)
return(AF_INET);
if (version == 0)
return(AF_UNSPEC);
return(-1);
}