Rewrite K&R-style function prototypes to ANSI-C-style.
Only internal functions, no exported functions in this commit.