Convert src/diff.c to ANSI-style functions.