Fix function prototypes