aboutsummaryrefslogtreecommitdiffstats
path: root/nasm.spec.in
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2017-04-23 17:02:46 -0700
committerH. Peter Anvin <hpa@zytor.com>2017-04-23 17:02:46 -0700
commit3e555483b30c6f0bd4b348861f694f73e487c134 (patch)
treeed41b485387185e2bb0f992ff1599b419bc31f78 /nasm.spec.in
parent4dfbd9aec56577d7e0dc9398781ea9918dbdcbf6 (diff)
downloadnasm-daily-3e555483b30c6f0bd4b348861f694f73e487c134.tar.gz
nasm-daily-3e555483b30c6f0bd4b348861f694f73e487c134.tar.xz
nasm-daily-3e555483b30c6f0bd4b348861f694f73e487c134.zip
labels, outelf: remove casts for allocations
Remove casts from allocations. This is simply Not How To Do Things: every cast carries a potential risk of being a toxic type misuse (e.g. pointer as integer) and so any unnecessary cast is actively harmful. Note that a lot of allocations here are completely unnecessary: the core code now guarantees that all filenames are permanently allocated for the duration of the assembly, and so should be turned into const char * without any further allocation. Any remaining malloc+strcpy should be turned into nasm_strdup(), and nasm_new[n]() used whereever possible. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'nasm.spec.in')
0 files changed, 0 insertions, 0 deletions