Removed C99 style comment and implicit declarations.

Compiled with -Wall and -pedantic.