Assorted code cleanups
-
find_fade
: declare argument as const - Handle
realloc()
failure - Use
reallocarray()
if it is available - Convert
sprintf
calls tosnprintf
- Use C99 struct initializers
- Add
{ }
aroundfor
loops containing multiple lines of code - More variable scope reductions