aboutsummaryrefslogtreecommitdiffstats
path: root/drv_SimpleLCD.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2005-04-02 05:28:58 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2005-04-02 05:28:58 +0000
commita6a03faa860233ec2b2d13abbb14bd9661a61222 (patch)
tree27c0a0d9a1c91737b28a4423a35d66ffb717dc66 /drv_SimpleLCD.c
parentdb07da0b72602a70c23ed10e4bface19ed029bc8 (diff)
downloadlcd4linux-a6a03faa860233ec2b2d13abbb14bd9661a61222.tar.gz
[lcd4linux @ 2005-04-02 05:28:58 by reinelt]
fixed gcc4 warnings about signed/unsigned mismatches git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@523 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_SimpleLCD.c')
-rw-r--r--drv_SimpleLCD.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drv_SimpleLCD.c b/drv_SimpleLCD.c
index 85f91bf..eb449a6 100644
--- a/drv_SimpleLCD.c
+++ b/drv_SimpleLCD.c
@@ -1,4 +1,4 @@
-/* $Id: drv_SimpleLCD.c,v 1.1 2005/02/24 07:06:48 reinelt Exp $
+/* $Id: drv_SimpleLCD.c,v 1.2 2005/04/02 05:28:58 reinelt Exp $
*
* driver for a simple serial terminal.
* This driver simply send out caracters on the serial port, without any
@@ -40,6 +40,9 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log: drv_SimpleLCD.c,v $
+ * Revision 1.2 2005/04/02 05:28:58 reinelt
+ * fixed gcc4 warnings about signed/unsigned mismatches
+ *
* Revision 1.1 2005/02/24 07:06:48 reinelt
* SimpleLCD driver added
*
@@ -123,12 +126,12 @@ static void drv_SL_write (const int row, const int col, const char *data, int le
static int drv_SL_start (const char *section, const int quiet)
{
int rows=-1, cols=-1;
- unsigned int flags=0;
+ int flags=0;
char *s;
cfg_number(section,"Options",0,0,0xffff,&flags);
- if (drv_generic_serial_open(section, Name, flags) < 0) return -1;
+ if (drv_generic_serial_open(section, Name, (unsigned) flags) < 0) return -1;
s=cfg_get(section, "Size", NULL);
if (s==NULL || *s=='\0') {