LCDproc development and user support list

Text archives Help


[Lcdproc] [PATCH] hd44780-rpi.c: Get rid of non-standard pointer type


Chronological Thread 
  • From: harald at ccbib.org (Harald Geyer)
  • Subject: [Lcdproc] [PATCH] hd44780-rpi.c: Get rid of non-standard pointer type
  • Date: Fri, 06 Nov 2015 20:30:36 +0100

The old code didn't compile against musl libc (OpenWRT).

Compiletested on ARM.
---
I don't have a RaspberryPi for testing and I don't know the exact semanics
of caddr_t (nor why it was used in this case), so I was somewhat unsure
about fixing this, but didn't get an answer to the bug report in almost
two weeks so sending a patch anyway.

At least this allows the code to compile.

server/drivers/hd44780-rpi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/drivers/hd44780-rpi.c b/server/drivers/hd44780-rpi.c
index 5ef9d18..53388eb 100644
--- a/server/drivers/hd44780-rpi.c
+++ b/server/drivers/hd44780-rpi.c
@@ -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;
--
2.1.4




  • [Lcdproc] [PATCH] hd44780-rpi.c: Get rid of non-standard pointer type, Harald Geyer, 11/06/2015

Archive powered by MHonArc 2.6.18.

Top of page