diff options
Diffstat (limited to 'sbin/dhclient/alloc.c')
-rw-r--r-- | sbin/dhclient/alloc.c | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/sbin/dhclient/alloc.c b/sbin/dhclient/alloc.c index cabb76d4298..d0a7d4afe94 100644 --- a/sbin/dhclient/alloc.c +++ b/sbin/dhclient/alloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: alloc.c,v 1.9 2004/05/04 20:28:40 deraadt Exp $ */ +/* $OpenBSD: alloc.c,v 1.10 2005/07/11 18:09:09 krw Exp $ */ /* Memory allocation... */ @@ -52,25 +52,3 @@ new_string_list(size_t size) rval->string = ((char *)rval) + sizeof(struct string_list); return (rval); } - -struct hash_table * -new_hash_table(int count) -{ - struct hash_table *rval; - - rval = calloc(1, sizeof(struct hash_table) - - (DEFAULT_HASH_SIZE * sizeof(struct hash_bucket *)) + - (count * sizeof(struct hash_bucket *))); - if (rval == NULL) - return (NULL); - rval->hash_count = count; - return (rval); -} - -struct hash_bucket * -new_hash_bucket(void) -{ - struct hash_bucket *rval = calloc(1, sizeof(struct hash_bucket)); - - return (rval); -} |