Cleanup compiler warnings.

Unused variables/arguments, char * constness, and signed v. unsigned.