# HG changeset patch # User Michiel Broek # Date 1456428400 -3600 # Node ID 08543a9ca28827f2cb5f88b2fe439bd590dea467 # Parent 7362ebd40f26d3e74e72cae30347c8cde44f3376 Fixed compiler warning diff -r 7362ebd40f26 -r 08543a9ca288 thermferm/slcd.c --- a/thermferm/slcd.c Thu Feb 25 20:12:27 2016 +0100 +++ b/thermferm/slcd.c Thu Feb 25 20:26:40 2016 +0100 @@ -136,11 +136,11 @@ -void slcdCharDef(int fd, int index, unsigned char data[8]) +void slcdCharDef(int fd, int idx, unsigned char data[8]) { int i; - putLCDsocket(fd, SLCD_CGRAM | ((index & 7) << 3)); + putLCDsocket(fd, SLCD_CGRAM | ((idx & 7) << 3)); for (i = 0 ; i < 8 ; ++i) putLCDsocket(fd, data[i]); } diff -r 7362ebd40f26 -r 08543a9ca288 thermferm/slcd.h --- a/thermferm/slcd.h Thu Feb 25 20:12:27 2016 +0100 +++ b/thermferm/slcd.h Thu Feb 25 20:26:40 2016 +0100 @@ -6,7 +6,7 @@ void slcdLEDs(int fd); void slcdClear(int fd); void slcdPosition(int fd, int x, int y); -void slcdCharDef(int fd, int index, unsigned char data[8]); +void slcdCharDef(int fd, int idx, unsigned char data[8]); void slcdPutchar(int fd, unsigned char c); void slcdPuts(int fd, const char *string); int slcdInit(int fd, int cols, int rows);