Fix prototypes of internal functions to increase readability