diff options
author | Kevin Lo <kevlo@cvs.openbsd.org> | 2018-09-07 07:49:44 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@cvs.openbsd.org> | 2018-09-07 07:49:44 +0000 |
commit | 1c09a3bc5e76d5161b49a730a2c3c8ecb825bbd8 (patch) | |
tree | 25de62970761da61a3f49fb30c1b788311ec5cb0 /usr.sbin | |
parent | e4605f09d2d1735720c186aa5a3371e258f2bc82 (diff) |
Fix the build after removing an unused af argument from unmask().
ok claudio@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/tcpdump/pf_print_state.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/pf_print_state.c b/usr.sbin/tcpdump/pf_print_state.c index 9c1097fb0a8..eac1764f936 100644 --- a/usr.sbin/tcpdump/pf_print_state.c +++ b/usr.sbin/tcpdump/pf_print_state.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_print_state.c,v 1.13 2016/10/28 12:42:39 jsg Exp $ */ +/* $OpenBSD: pf_print_state.c,v 1.14 2018/09/07 07:49:43 kevlo Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -104,7 +104,7 @@ print_addr(struct pf_addr_wrap *addr, sa_family_t af, int verbose) return; } if (! PF_AZERO(&addr->v.a.mask, af)) { - int bits = unmask(&addr->v.a.mask, af); + int bits = unmask(&addr->v.a.mask); if (bits != (af == AF_INET ? 32 : 128)) printf("/%d", bits); @@ -318,7 +318,7 @@ print_state(struct pfsync_state *s, int opts) } int -unmask(struct pf_addr *m, sa_family_t af) +unmask(struct pf_addr *m) { int i = 31, j = 0, b = 0; u_int32_t tmp; |