summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric Berger <cedric@cvs.openbsd.org>2004-06-14 20:44:23 +0000
committerCedric Berger <cedric@cvs.openbsd.org>2004-06-14 20:44:23 +0000
commitd3ce5ac522b85e3300fa2a3ab4d7731b5c38deb1 (patch)
treec1ed0e90facc82fb77dbfc4eeb8621486e2a30ca
parent1053b4522ba422e6578918948812fa146f78953b (diff)
Remove unused functions. ok beck@ henning@
-rw-r--r--sbin/pfctl/pfctl.h4
-rw-r--r--sbin/pfctl/pfctl_radix.c40
2 files changed, 2 insertions, 42 deletions
diff --git a/sbin/pfctl/pfctl.h b/sbin/pfctl/pfctl.h
index 4c345f49563..1c519463269 100644
--- a/sbin/pfctl/pfctl.h
+++ b/sbin/pfctl/pfctl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl.h,v 1.35 2004/05/19 17:50:51 dhartmei Exp $ */
+/* $OpenBSD: pfctl.h,v 1.36 2004/06/14 20:44:22 cedric Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -64,8 +64,6 @@ int pfr_get_astats(struct pfr_table *, struct pfr_astats *, int *, int);
int pfr_clr_astats(struct pfr_table *, struct pfr_addr *, int, int *, int);
int pfr_tst_addrs(struct pfr_table *, struct pfr_addr *, int, int *, int);
int pfr_set_tflags(struct pfr_table *, int, int, int, int *, int *, int);
-int pfr_ina_begin(struct pfr_table *, int *, int *, int);
-int pfr_ina_commit(struct pfr_table *, int, int *, int *, int);
int pfr_ina_define(struct pfr_table *, struct pfr_addr *, int, int *,
int *, int, int);
void pfr_buf_clear(struct pfr_buffer *);
diff --git a/sbin/pfctl/pfctl_radix.c b/sbin/pfctl/pfctl_radix.c
index c08496bf8b8..ba004b83910 100644
--- a/sbin/pfctl/pfctl_radix.c
+++ b/sbin/pfctl/pfctl_radix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_radix.c,v 1.25 2004/04/09 12:42:06 cedric Exp $ */
+/* $OpenBSD: pfctl_radix.c,v 1.26 2004/06/14 20:44:22 cedric Exp $ */
/*
* Copyright (c) 2002 Cedric Berger
@@ -393,44 +393,6 @@ pfr_tst_addrs(struct pfr_table *tbl, struct pfr_addr *addr, int size,
}
int
-pfr_ina_begin(struct pfr_table *trs, int *ticket, int *ndel, int flags)
-{
- struct pfioc_table io;
-
- bzero(&io, sizeof io);
- if (trs != NULL)
- io.pfrio_table = *trs;
- io.pfrio_flags = flags;
- if (ioctl(dev, DIOCRINABEGIN, &io))
- return (-1);
- if (ndel != NULL)
- *ndel = io.pfrio_ndel;
- if (ticket != NULL)
- *ticket = io.pfrio_ticket;
- return (0);
-}
-
-int
-pfr_ina_commit(struct pfr_table *trs, int ticket, int *nadd, int *nchange,
- int flags)
-{
- struct pfioc_table io;
-
- bzero(&io, sizeof io);
- if (trs != NULL)
- io.pfrio_table = *trs;
- io.pfrio_flags = flags;
- io.pfrio_ticket = ticket;
- if (ioctl(dev, DIOCRINACOMMIT, &io))
- return (-1);
- if (nadd != NULL)
- *nadd = io.pfrio_nadd;
- if (nchange != NULL)
- *nchange = io.pfrio_nchange;
- return (0);
-}
-
-int
pfr_ina_define(struct pfr_table *tbl, struct pfr_addr *addr, int size,
int *nadd, int *naddr, int ticket, int flags)
{