Fix -Wstrict-prototypes warnings

Recent GCC generates "warning: function declaration isn't a prototype" when
building with -Wstrict-prototypes.