Add function prototypes for the "private" routines.

Also transform "unsigned" into "unsigned int".