Use uint and uchar instead of unsigned int and unsigned char.