summaryrefslogtreecommitdiff
path: root/dlink.h
Commit message (Collapse)AuthorAge
* Remove scattered checks for malloc success.NeilBrown2012-07-09
| | | | | | | | | | | | | | malloc should never fail, and if it does it is unlikely that anything else useful can be done. Best approach is to abort and let some super-daemon restart. So define xmalloc, xcalloc, xrealloc, xstrdup which don't fail but just print a message and exit. Then use those removing all the tests for failure. Also replace all "malloc;memset" sequences with 'xcalloc'. Signed-off-by: NeilBrown <neilb@suse.de>
* This is to avoid gcc warnings when building with strict-aliasing optimizationNeil Brown2006-05-29
| | | | | | | | | fix for another srict-aliasing problem, you can typecast a reference to a void pointer to anything, you cannot typecast a reference to a struct. From: Luca Berra <bluca@vodka.it> Signed-off-by: Neil Brown <neilb@suse.de>
* mdadm-0.8Neil Brown2002-04-04
|
* mdctl-v0.4Neil Brown2001-07-26