hd44780-rpi.c: Get rid of non-standard pointer type
The old code didn't compile against musl libc (OpenWRT). Compiletested on ARM. Signed-off-by: Harald Geyer <harald@ccbib.org>
This commit is contained in:
@@ -285,7 +285,7 @@ lcdrpi_HD44780_close(PrivateData *p)
|
||||
|
||||
/* Unmap and free memory */
|
||||
if (gpio_map != NULL)
|
||||
munmap((caddr_t) gpio_map, GPIO_BLOCK_SIZE);
|
||||
munmap((void *) gpio_map, GPIO_BLOCK_SIZE);
|
||||
if (p->rpi_gpio != NULL)
|
||||
free(p->rpi_gpio);
|
||||
p->rpi_gpio = NULL;
|
||||
|
||||
Reference in New Issue
Block a user