summaryrefslogtreecommitdiffstats
path: root/sys/netpfil
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2015-05-19 16:51:30 +0000
committerluigi <luigi@FreeBSD.org>2015-05-19 16:51:30 +0000
commitd1f07a4ecc056f9707e7d7d31619d9d2a4cc5628 (patch)
tree63afa1192e2b56ff7fc03dfedeb34142f193a59b /sys/netpfil
parent1a7b6ddd5dc051d2d9a059bfeeff55658a14b8b1 (diff)
downloadFreeBSD-src-d1f07a4ecc056f9707e7d7d31619d9d2a4cc5628.zip
FreeBSD-src-d1f07a4ecc056f9707e7d7d31619d9d2a4cc5628.tar.gz
use proper types to represent function pointers
Diffstat (limited to 'sys/netpfil')
-rw-r--r--sys/netpfil/ipfw/ip_fw_pfil.c2
-rw-r--r--sys/netpfil/ipfw/ip_fw_sockopt.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/netpfil/ipfw/ip_fw_pfil.c b/sys/netpfil/ipfw/ip_fw_pfil.c
index 61f182d..3460036 100644
--- a/sys/netpfil/ipfw/ip_fw_pfil.c
+++ b/sys/netpfil/ipfw/ip_fw_pfil.c
@@ -505,7 +505,7 @@ static int
ipfw_hook(int onoff, int pf)
{
struct pfil_head *pfh;
- void *hook_func;
+ pfil_func_t hook_func;
pfh = pfil_head_get(PFIL_TYPE_AF, pf);
if (pfh == NULL)
diff --git a/sys/netpfil/ipfw/ip_fw_sockopt.c b/sys/netpfil/ipfw/ip_fw_sockopt.c
index d618a6c..107c4b8 100644
--- a/sys/netpfil/ipfw/ip_fw_sockopt.c
+++ b/sys/netpfil/ipfw/ip_fw_sockopt.c
@@ -2846,7 +2846,7 @@ compare_sh(const void *_a, const void *_b)
* Returns pointer to handler or NULL.
*/
static struct ipfw_sopt_handler *
-find_sh(uint16_t code, uint8_t version, void *handler)
+find_sh(uint16_t code, uint8_t version, sopt_handler_f *handler)
{
struct ipfw_sopt_handler *sh, h;
OpenPOWER on IntegriCloud