Fix [Incompatible pointer to integer conversion assigning to 'char' from 'void *'] warning