freebsd-skq/contrib/ipfilter/ipt.h
Cy Schubert 4cd1807c7d Retire the K&R/STD C __P prototype declarations.
In the old days when K&R C and STD C were each in use a workaround
(read hack) was required to allow the same code to work on each
without modification. All C compilers support STD C. We can finally
put the __P prototype to rest.

MFC after:	1 week
2021-02-01 17:19:15 -08:00

41 lines
518 B
C

/* $FreeBSD$ */
/*
* Copyright (C) 2012 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*
* $Id$
*/
#ifndef __IPT_H__
#define __IPT_H__
#ifndef __P
# define P_DEF
# ifdef __STDC__
# define __P(x) x
# else
# define __P(x) ()
# endif
#endif
#include <fcntl.h>
struct ipread {
int (*r_open)(char *);
int (*r_close)(void);
int (*r_readip)(mb_t *, char **, int *);
int r_flags;
};
#define R_DO_CKSUM 0x01
#ifdef P_DEF
# undef __P
# undef P_DEF
#endif
#endif /* __IPT_H__ */