From a6a03faa860233ec2b2d13abbb14bd9661a61222 Mon Sep 17 00:00:00 2001 From: reinelt Date: Sat, 2 Apr 2005 05:28:58 +0000 Subject: [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 --- drv_SimpleLCD.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'drv_SimpleLCD.c') 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') { -- cgit v1.2.3