aboutsummaryrefslogtreecommitdiffstats
path: root/drv_SimpleLCD.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2005-07-06 04:40:18 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2005-07-06 04:40:18 +0000
commit0709d7c61d30dc45900d34eacf632e4d0b0f6941 (patch)
tree7a317011db021cced0e1a3d299edeec1147dbfd8 /drv_SimpleLCD.c
parentfa5e62aa7a44b9e8ea94ddb27eb187a938a9f366 (diff)
downloadlcd4linux-0709d7c61d30dc45900d34eacf632e4d0b0f6941.tar.gz
[lcd4linux @ 2005-07-06 04:40:18 by reinelt]
GCC-4 fixes git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@581 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_SimpleLCD.c')
-rw-r--r--drv_SimpleLCD.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/drv_SimpleLCD.c b/drv_SimpleLCD.c
index 872eff5..d68947d 100644
--- a/drv_SimpleLCD.c
+++ b/drv_SimpleLCD.c
@@ -1,4 +1,4 @@
-/* $Id: drv_SimpleLCD.c,v 1.4 2005/05/08 04:32:44 reinelt Exp $
+/* $Id: drv_SimpleLCD.c,v 1.5 2005/07/06 04:40:18 reinelt Exp $
*
* driver for a simple serial terminal.
*
@@ -22,6 +22,9 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log: drv_SimpleLCD.c,v $
+ * Revision 1.5 2005/07/06 04:40:18 reinelt
+ * GCC-4 fixes
+ *
* Revision 1.4 2005/05/08 04:32:44 reinelt
* CodingStyle added and applied
*
@@ -198,6 +201,7 @@ static void drv_SL_vt100_write(const int row, const int col, const char *data, i
static int drv_SL_start(const char *section, const int quiet)
{
int rows = -1, cols = -1;
+ int value;
unsigned int flags = 0;
char *s;
char *model = 0;
@@ -209,9 +213,10 @@ static int drv_SL_start(const char *section, const int quiet)
vt100_mode = 1;
}
- cfg_number(section, "BarCharValue", 0, 0, 255, &flags);
- bar_char = flags;
- cfg_number(section, "Options", 0, 0, 0xffff, &flags);
+ cfg_number(section, "BarCharValue", 0, 0, 255, &value);
+ bar_char = value;
+ cfg_number(section, "Options", 0, 0, 0xffff, &value);
+ flags = value;
if (drv_generic_serial_open(section, Name, flags) < 0)
return -1;