Fix bad prototype warnings.

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>