#
c525a185 |
| 13-Feb-2017 |
krw <krw@openbsd.org> |
Switch from old errwarn.c logging to shiny new log.[ch].
ok benno@
|
#
837cddff |
| 06-Feb-2016 |
krw <krw@openbsd.org> |
Eliminate #include inside *.h files and include only needed headers in each *.c file.
Inspired by mention of header silliness by Edgar Pettijohn and mmcc@ on tech@.
|
#
0582c210 |
| 21-Dec-2015 |
mmcc <mmcc@openbsd.org> |
remove NULL-checks before free()
|
#
d60fc4a4 |
| 02-Jan-2010 |
krw <krw@openbsd.org> |
Eliminate all uses of dmalloc() where the returned pointer is checked for NULL and a specific error/warning issued. Add two such manual warning/error checks and kill those dmalloc calls. And then the
Eliminate all uses of dmalloc() where the returned pointer 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.
show more ...
|
#
92b98df2 |
| 01-Jan-2010 |
krw <krw@openbsd.org> |
Eliminate all uses of dfree() where the pointer is either dereferenced immediately before the use or the pointer is checked for NULL before the call. And then there were none, so kill dfree().
|
#
04b89754 |
| 01-Jan-2010 |
krw <krw@openbsd.org> |
Wrappers around a wrapper around free() are of no more use than wrappers around wrappers around calloc().
The purpose of the free() wrapper is to generate an error message when free'ing NULL. But fr
Wrappers around a wrapper around free() are of no more use than 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.
show more ...
|
#
750b584a |
| 01-Jan-2010 |
krw <krw@openbsd.org> |
A slightly more complex calloc() wrapper wrapper, new_hash_table(), bites the dust.
|
#
1c629c6d |
| 01-Jan-2010 |
krw <krw@openbsd.org> |
Another calloc() wrapper wrapper, new_tree(), bites the dust.
|
#
0372438b |
| 01-Jan-2010 |
krw <krw@openbsd.org> |
Two more calloc() wrapper wrappers, new_shared_network() and new_subnet(), bite the dust.
|
#
773bb22e |
| 01-Jan-2010 |
krw <krw@openbsd.org> |
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(
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().
show more ...
|
#
23d0ad63 |
| 01-Jan-2010 |
krw <krw@openbsd.org> |
Plug a potential leak similar to the one parfait spotted and Theo fixed.
Eliminate the function new_class() by expanding the only use
Use strdup() and calloc() rather than manually simulating them.
Plug a potential leak similar to the one parfait spotted and Theo fixed.
Eliminate the function new_class() by expanding the only use
Use strdup() and calloc() rather than manually simulating them.
No functional change.
show more ...
|
#
0795b389 |
| 16-Sep-2004 |
deraadt <deraadt@openbsd.org> |
avoid aliasing with libc functions; ok henning
|
#
285f06ef |
| 04-May-2004 |
deraadt <deraadt@openbsd.org> |
remove things not used, spotted by lint mostly; ok henning
|
#
04c8330a |
| 14-Apr-2004 |
henning <henning@openbsd.org> |
cheat to KNF and ansi this: take the one from dhclient and add back the few missing functions
|
#
e853bc5d |
| 13-Apr-2004 |
henning <henning@openbsd.org> |
may the whacking begin
|