]> git.ipfire.org Git - thirdparty/util-linux.git/commit - disk-utils/mkswap.c
misc: never cast void* from malloc(3) and friends
authorRuediger Meier <ruediger.meier@ga-group.nl>
Fri, 26 Feb 2016 10:10:24 +0000 (11:10 +0100)
committerRuediger Meier <ruediger.meier@ga-group.nl>
Mon, 7 Mar 2016 22:29:27 +0000 (23:29 +0100)
commitfea1cbf7484df23a6fe0b62ccd1de271bc1f931a
tree047a4504053a7b449bce7695346a3f7edf78a068
parentd9851e63fba82cbda2238f26f20bf59b3d962577
misc: never cast void* from malloc(3) and friends

Such cast could hide serious compiler warnings in case we are
missing includes (e.g. <stdlib.h> or "xalloc.h").

See
http://stackoverflow.com/questions/605845/do-i-cast-the-result-of-malloc

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
12 files changed:
disk-utils/mkswap.c
lib/setproctitle.c
lib/strutils.c
libblkid/src/cache.c
libblkid/src/config.c
libblkid/src/dev.c
libblkid/src/tag.c
login-utils/login.c
misc-utils/test_uuidd.c
sys-utils/swapon-common.c
term-utils/agetty.c
text-utils/col.c