use proper types to represent function pointers

This commit is contained in:
luigi 2015-05-19 16:51:30 +00:00
parent 1a7b6ddd5d
commit d1f07a4ecc
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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;