Add function prototypes.
Modify function calls so the prototypes are checked.

10 files changed