summaryrefslogtreecommitdiffstats
path: root/usr.sbin/dhcpd/alloc.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2010-01-01 08:02:34 +0000
committerkrw <krw@openbsd.org>2010-01-01 08:02:34 +0000
commit0372438b4d3ee9aaa65d07cbfe5b48dd751d8f2e (patch)
treec500a7dffb24661f6386be392db9f490a55f2f54 /usr.sbin/dhcpd/alloc.c
parentdeck chair shuffling (diff)
downloadwireguard-openbsd-0372438b4d3ee9aaa65d07cbfe5b48dd751d8f2e.tar.xz
wireguard-openbsd-0372438b4d3ee9aaa65d07cbfe5b48dd751d8f2e.zip
Two more calloc() wrapper wrappers, new_shared_network() and
new_subnet(), bite the dust.
Diffstat (limited to 'usr.sbin/dhcpd/alloc.c')
-rw-r--r--usr.sbin/dhcpd/alloc.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/usr.sbin/dhcpd/alloc.c b/usr.sbin/dhcpd/alloc.c
index efa7d2a74f4..a9e31dc4c1e 100644
--- a/usr.sbin/dhcpd/alloc.c
+++ b/usr.sbin/dhcpd/alloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: alloc.c,v 1.6 2010/01/01 06:25:37 krw Exp $ */
+/* $OpenBSD: alloc.c,v 1.7 2010/01/01 08:02:34 krw Exp $ */
/* Memory allocation... */
@@ -123,21 +123,6 @@ free_tree(struct tree *ptr, char *name)
dfree(ptr, name);
}
-struct shared_network *
-new_shared_network(char *name)
-{
- struct shared_network *rval =
- dmalloc(sizeof(struct shared_network), name);
- return (rval);
-}
-
-struct subnet *
-new_subnet(char *name)
-{
- struct subnet *rval = dmalloc(sizeof(struct subnet), name);
- return (rval);
-}
-
struct lease_state *
new_lease_state(char *name)
{