summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcpd/alloc.c
AgeCommit message (Collapse)Author
2017-02-13Switch from old errwarn.c logging to shiny new log.[ch].Kenneth R Westerback
ok benno@
2016-02-06Eliminate #include inside *.h files and include only needed headers inKenneth R Westerback
each *.c file. Inspired by mention of header silliness by Edgar Pettijohn and mmcc@ on tech@.
2015-12-21remove NULL-checks before free()mmcc
2010-01-02Eliminate all uses of dmalloc() where the returned pointerKenneth R Westerback
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.
2010-01-01Eliminate all uses of dfree() where the pointer is either dereferencedKenneth R Westerback
immediately before the use or the pointer is checked for NULL before the call. And then there were none, so kill dfree().
2010-01-01Wrappers around a wrapper around free() are of no more use thanKenneth R Westerback
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.
2010-01-01A slightly more complex calloc() wrapper wrapper, new_hash_table(),Kenneth R Westerback
bites the dust.
2010-01-01Another calloc() wrapper wrapper, new_tree(), bites the dust.Kenneth R Westerback
2010-01-01Two more calloc() wrapper wrappers, new_shared_network() andKenneth R Westerback
new_subnet(), bite the dust.
2010-01-01Single-use wrapper functions that just call a wrapper functionKenneth R Westerback
around calloc() and end up producing duplicate error messages are just confusing. Eliminate new_hash_bucket(), new_lease(), new_leases(), new_group().
2010-01-01Plug a potential leak similar to the one parfait spotted and TheoKenneth R Westerback
fixed. Eliminate the function new_class() by expanding the only use Use strdup() and calloc() rather than manually simulating them. No functional change.
2004-09-16avoid aliasing with libc functions; ok henningTheo de Raadt
2004-05-04remove things not used, spotted by lint mostly; ok henningTheo de Raadt
2004-04-14cheat to KNF and ansi this: take the one from dhclient and add back theHenning Brauer
few missing functions
2004-04-13may the whacking beginHenning Brauer