summaryrefslogtreecommitdiffstats
path: root/usr.sbin/dhcpd/alloc.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Switch from old errwarn.c logging to shiny new log.[ch].krw2017-02-131-3/+4
| | | | ok benno@
* Eliminate #include inside *.h files and include only needed headers inkrw2016-02-061-1/+13
| | | | | | | each *.c file. Inspired by mention of header silliness by Edgar Pettijohn and mmcc@ on tech@.
* remove NULL-checks before free()mmcc2015-12-211-3/+2
|
* Eliminate all uses of dmalloc() where the returned pointerkrw2010-01-021-17/+9
| | | | | | is checked for NULL and a specific error/warning issued. Add two such manual warning/error checks and kill those dmalloc calls. And then there were none, so kill dmalloc(). Whew.
* Eliminate all uses of dfree() where the pointer is either dereferencedkrw2010-01-011-12/+2
| | | | | immediately before the use or the pointer is checked for NULL before the call. And then there were none, so kill dfree().
* Wrappers around a wrapper around free() are of no more use thankrw2010-01-011-19/+1
| | | | | | | | | wrappers around wrappers around calloc(). The purpose of the free() wrapper is to generate an error message when free'ing NULL. But free_hash_bucket(), free_lease(), and free_tree() are all called immediately after dereferencing the pointer to be freed. Thus the error message will never be issued.
* A slightly more complex calloc() wrapper wrapper, new_hash_table(),krw2010-01-011-15/+1
| | | | bites the dust.
* Another calloc() wrapper wrapper, new_tree(), bites the dust.krw2010-01-011-9/+1
|
* Two more calloc() wrapper wrappers, new_shared_network() andkrw2010-01-011-16/+1
| | | | new_subnet(), bite the dust.
* Single-use wrapper functions that just call a wrapper functionkrw2010-01-011-31/+1
| | | | | | | around calloc() and end up producing duplicate error messages are just confusing. Eliminate new_hash_bucket(), new_lease(), new_leases(), new_group().
* Plug a potential leak similar to the one parfait spotted and Theokrw2010-01-011-8/+1
| | | | | | | | | | fixed. Eliminate the function new_class() by expanding the only use Use strdup() and calloc() rather than manually simulating them. No functional change.
* avoid aliasing with libc functions; ok henningderaadt2004-09-161-3/+3
|
* remove things not used, spotted by lint mostly; ok henningderaadt2004-05-041-39/+2
|
* cheat to KNF and ansi this: take the one from dhclient and add back thehenning2004-04-141-203/+101
| | | | few missing functions
* may the whacking beginhenning2004-04-131-0/+344