Fixed compiler warning

Thu, 25 Feb 2016 20:26:40 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 25 Feb 2016 20:26:40 +0100
changeset 485
08543a9ca288
parent 484
7362ebd40f26
child 486
5a237a99a793

Fixed compiler warning

thermferm/slcd.c file | annotate | diff | comparison | revisions
thermferm/slcd.h file | annotate | diff | comparison | revisions
--- 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]);
 }
--- 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);

mercurial