diff options
| author | 2010-01-01 06:25:37 +0000 | |
|---|---|---|
| committer | 2010-01-01 06:25:37 +0000 | |
| commit | 773bb22e8a006a5e78ad1e83720911c1da3bafed (patch) | |
| tree | d12ae78605a20d73e8d79e1ddf5634043a6da214 /usr.sbin/dhcpd/alloc.c | |
| parent | add arch(1) to the ramdisk, it is tiny and we will soon need it (diff) | |
| download | wireguard-openbsd-773bb22e8a006a5e78ad1e83720911c1da3bafed.tar.xz wireguard-openbsd-773bb22e8a006a5e78ad1e83720911c1da3bafed.zip | |
Single-use wrapper functions that just call a wrapper function
around calloc() and end up producing duplicate error messages are
just confusing.
Eliminate new_hash_bucket(), new_lease(), new_leases(), new_group().
Diffstat (limited to 'usr.sbin/dhcpd/alloc.c')
| -rw-r--r-- | usr.sbin/dhcpd/alloc.c | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/usr.sbin/dhcpd/alloc.c b/usr.sbin/dhcpd/alloc.c index 69309c0deec..efa7d2a74f4 100644 --- a/usr.sbin/dhcpd/alloc.c +++ b/usr.sbin/dhcpd/alloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: alloc.c,v 1.5 2010/01/01 01:47:41 krw Exp $ */ +/* $OpenBSD: alloc.c,v 1.6 2010/01/01 06:25:37 krw Exp $ */ /* Memory allocation... */ @@ -104,14 +104,6 @@ new_hash_table(int count, char *name) return (rval); } -struct hash_bucket * -new_hash_bucket(char *name) -{ - struct hash_bucket *rval = dmalloc(sizeof(struct hash_bucket), name); - - return (rval); -} - void free_hash_bucket(struct hash_bucket *ptr, char *name) { @@ -169,28 +161,6 @@ free_lease_state(struct lease_state *ptr, char *name) free_lease_states = ptr; } -struct lease * -new_leases(int n, char *name) -{ - struct lease *rval = dmalloc(n * sizeof(struct lease), name); - return (rval); -} - -struct lease * -new_lease(char *name) -{ - struct lease *rval = dmalloc(sizeof(struct lease), name); - return (rval); -} - -struct group * -new_group(char *name) -{ - struct group *rval = - dmalloc(sizeof(struct group), name); - return (rval); -} - void free_lease(struct lease *ptr, char *name) { |
