fixed warnings about prototypes.