summaryrefslogtreecommitdiffstats
path: root/usr.sbin/dhcpd/alloc.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2010-01-01 19:10:24 +0000
committerkrw <krw@openbsd.org>2010-01-01 19:10:24 +0000
commit750b584afb1d8bc6779448e2c2ff205bcfabbf59 (patch)
tree26f95696610c3192cb5db11cc5f555448d38ddbb /usr.sbin/dhcpd/alloc.c
parentAnother calloc() wrapper wrapper, new_tree(), bites the dust. (diff)
downloadwireguard-openbsd-750b584afb1d8bc6779448e2c2ff205bcfabbf59.tar.xz
wireguard-openbsd-750b584afb1d8bc6779448e2c2ff205bcfabbf59.zip
A slightly more complex calloc() wrapper wrapper, new_hash_table(),
bites the dust.
Diffstat (limited to 'usr.sbin/dhcpd/alloc.c')
-rw-r--r--usr.sbin/dhcpd/alloc.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/usr.sbin/dhcpd/alloc.c b/usr.sbin/dhcpd/alloc.c
index cd060fb4cff..01db3635eb0 100644
--- a/usr.sbin/dhcpd/alloc.c
+++ b/usr.sbin/dhcpd/alloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: alloc.c,v 1.8 2010/01/01 18:01:44 krw Exp $ */
+/* $OpenBSD: alloc.c,v 1.9 2010/01/01 19:10:24 krw Exp $ */
/* Memory allocation... */
@@ -82,20 +82,6 @@ new_tree_cache(char *name)
return (rval);
}
-struct hash_table *
-new_hash_table(int count, char *name)
-{
- struct hash_table *rval;
-
- rval = dmalloc(sizeof(struct hash_table) -
- (DEFAULT_HASH_SIZE * sizeof(struct hash_bucket *)) +
- (count * sizeof(struct hash_bucket *)), name);
- if (rval == NULL)
- return (NULL);
- rval->hash_count = count;
- return (rval);
-}
-
void
free_hash_bucket(struct hash_bucket *ptr, char *name)
{