diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-05-23 07:47:06 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-05-23 07:47:06 +0000 |
commit | ba422cc0dee1b90e6e23d4181e05daf46c88cfd4 (patch) | |
tree | ca757feacc4c7240c2bb810f3934ba6f1f908dc1 | |
parent | 654706ba534e2a06194b60707eb324f19e5ed350 (diff) |
new_addr is not used from anywhere. daniel@benzedrine.cx ok
-rw-r--r-- | sbin/pfctl/parse.y | 31 |
1 files changed, 8 insertions, 23 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index 1d1b853ec3d..3a2d3da1f33 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.67 2002/05/19 22:26:27 deraadt Exp $ */ +/* $OpenBSD: parse.y,v 1.68 2002/05/23 07:47:05 itojun Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -107,16 +107,13 @@ struct peer { struct node_port *port; }; -int rule_consistent(struct pf_rule *); -int yyparse(void); -struct pf_rule_addr *new_addr(void); -void ipmask(struct pf_addr *, u_int8_t); -void expand_rule(struct pf_rule *, - struct node_if *, struct node_proto *, - struct node_host *, struct node_port *, - struct node_host *, struct node_port *, - struct node_uid *, struct node_gid *, - struct node_icmp *); +int rule_consistent(struct pf_rule *); +int yyparse(void); +void ipmask(struct pf_addr *, u_int8_t); +void expand_rule(struct pf_rule *, struct node_if *, struct node_proto *, + struct node_host *, struct node_port *, struct node_host *, + struct node_port *, struct node_uid *, struct node_gid *, + struct node_icmp *); struct sym { struct sym *next; @@ -2085,18 +2082,6 @@ ipmask(struct pf_addr *m, u_int8_t b) m->addr32[j] = htonl(m->addr32[j]); } -struct pf_rule_addr * -new_addr(void) -{ - struct pf_rule_addr *ra; - - ra = malloc(sizeof(struct pf_rule_addr)); - if (ra == NULL) - err(1, "new_addr: malloc failed"); - memset(ra, 0, sizeof(*ra)); - return (ra); -} - /* * Over-designed efficiency is a French and German concept, so how about * we wait until they discover this ugliness and make it all fancy. |