Date: Tue, 19 May 2015 16:51:30 +0000 (UTC) From: Luigi Rizzo <luigi@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r283116 - head/sys/netpfil/ipfw Message-ID: <201505191651.t4JGpU9r052037@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: luigi Date: Tue May 19 16:51:30 2015 New Revision: 283116 URL: https://svnweb.freebsd.org/changeset/base/283116 Log: use proper types to represent function pointers Modified: head/sys/netpfil/ipfw/ip_fw_pfil.c head/sys/netpfil/ipfw/ip_fw_sockopt.c Modified: head/sys/netpfil/ipfw/ip_fw_pfil.c ============================================================================== --- head/sys/netpfil/ipfw/ip_fw_pfil.c Tue May 19 16:23:47 2015 (r283115) +++ head/sys/netpfil/ipfw/ip_fw_pfil.c Tue May 19 16:51:30 2015 (r283116) @@ -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) Modified: head/sys/netpfil/ipfw/ip_fw_sockopt.c ============================================================================== --- head/sys/netpfil/ipfw/ip_fw_sockopt.c Tue May 19 16:23:47 2015 (r283115) +++ head/sys/netpfil/ipfw/ip_fw_sockopt.c Tue May 19 16:51:30 2015 (r283116) @@ -2846,7 +2846,7 @@ compare_sh(const void *_a, const void *_ * 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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505191651.t4JGpU9r052037>