diff options
author | Mike Pechkin <mpech@cvs.openbsd.org> | 2002-01-07 17:23:32 +0000 |
---|---|---|
committer | Mike Pechkin <mpech@cvs.openbsd.org> | 2002-01-07 17:23:32 +0000 |
commit | 45eafa85e436251ea55e69bc0521d205158400e0 (patch) | |
tree | 1b05386ce5751a80e9aaa5fff6545f08f19e06c7 /sbin/pfctl/parse.y | |
parent | 7bc415c7f209856c24b29012229f4e70841ae723 (diff) |
remove 3rd argument from ipmask(), not used.
dhartmei@ ok
Diffstat (limited to 'sbin/pfctl/parse.y')
-rw-r--r-- | sbin/pfctl/parse.y | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index b8776f1a521..b178ecf32f7 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.48 2001/12/23 03:50:03 deraadt Exp $ */ +/* $OpenBSD: parse.y,v 1.49 2002/01/07 17:23:31 mpech Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -96,7 +96,7 @@ struct peer { int rule_consistent(struct pf_rule *); int yyparse(void); struct pf_rule_addr *new_addr(void); -void ipmask(struct pf_addr *, u_int8_t, int); +void ipmask(struct pf_addr *, u_int8_t); void expand_rule_hosts(struct pf_rule *, struct node_if *, struct node_proto *, struct node_host *, struct node_port *, @@ -426,9 +426,9 @@ xhost : '!' host { $$ = $2; $$->not = 1; } host : address { $$ = $1; if ($$->af == AF_INET) - ipmask(&$$->mask, 32, AF_INET); + ipmask(&$$->mask, 32); else - ipmask(&$$->mask, 128, AF_INET6); + ipmask(&$$->mask, 128); } | address '/' NUMBER { if ($$->af == AF_INET) { @@ -443,7 +443,7 @@ host : address { } } $$ = $1; - ipmask(&$$->mask, $3, $$->af); + ipmask(&$$->mask, $3); } ; @@ -1628,7 +1628,7 @@ parse_nat(FILE *input, struct pfctl *xpf) } void -ipmask(struct pf_addr *m, u_int8_t b, int af) +ipmask(struct pf_addr *m, u_int8_t b) { int i, j = 0; |