Cast udata to void *.

Another method to get rid of the warning, suggested by Wez Furlong.
Use uint8_t instead of "unsigned char" to keep line length down.

Suggested by Wez Furlong.