Change unsigned char to uint8_t