ANSI'fy.
ANSI'fy, remove redundant casts and add missing includes.
ANSI'fy, remove redundant casts, use correct format specifiers.