- From: harald at ccbib.org (Harald Geyer)
- Subject: [Lcdproc] [PATCH] rawserial.c: Get rid of non-standard type
- Date: Fri, 06 Nov 2015 20:20:47 +0100
Looks like uint isn't supported by MUSL libc used by OpenWRT.
---
This fix is part of an effort to make lcdproc compile for OpenWRT again
and update the lcdproc package there.
server/drivers/rawserial.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/server/drivers/rawserial.c b/server/drivers/rawserial.c
index 433273a..e05ffb4 100644
--- a/server/drivers/rawserial.c
+++ b/server/drivers/rawserial.c
@@ -60,13 +60,13 @@ typedef struct rawserial_private_data {
/** \name Event loop timing. refresh_time and refresh_delta form the
* event loop timing mechanism for configurable update rates.
*@{*/
- uint refresh_time; /**< time at the last screen update */
- uint refresh_delta; /**< time step to next screen update
*/
+ unsigned int refresh_time; /**< time at the last screen update */
+ unsigned int refresh_delta; /**< time step to next screen update
*/
/**@}*/
} PrivateData;
/* Local prototypes */
-static uint get_millisecond_time(void);
+static unsigned int get_millisecond_time(void);
/* Vars for the server core */
@@ -303,7 +303,7 @@ rawserial_flush(Driver *drvthis)
PrivateData *p = drvthis->private_data;
char out[LCD_MAX_WIDTH * LCD_MAX_HEIGHT];
- uint currentTime = get_millisecond_time();
+ unsigned int currentTime = get_millisecond_time();
int t_delta = currentTime - p->refresh_time;
/*
@@ -415,7 +415,7 @@ rawserial_get_info(Driver *drvthis)
*
* \return int with current millisecond time.
*/
-static uint
+static unsigned
get_millisecond_time(void)
{
struct timeval ts;
--
2.1.4
- [Lcdproc] [PATCH] rawserial.c: Get rid of non-standard type, Harald Geyer, 11/06/2015
Archive powered by MHonArc 2.6.18.