aboutsummaryrefslogtreecommitdiffstats
path: root/processor.c
diff options
context:
space:
mode:
authorreinelt <>2002-12-05 19:23:01 +0000
committerreinelt <>2002-12-05 19:23:01 +0000
commit4b3d551f38c4dbba096577bbbd2466afc37fe7aa (patch)
treea53a801ca1a2f17bf0b0b89d3705e085bc5dda5b /processor.c
parent8bfbb55ebf0a185469cf073af0317e4b17aa9acd (diff)
downloadlcd4linux-4b3d551f38c4dbba096577bbbd2466afc37fe7aa.tar.gz
[lcd4linux @ 2002-12-05 19:23:01 by reinelt]
fixed undefined operations found by gcc3
Diffstat (limited to 'processor.c')
-rw-r--r--processor.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/processor.c b/processor.c
index b53eb56..4e4a0e5 100644
--- a/processor.c
+++ b/processor.c
@@ -1,4 +1,4 @@
-/* $Id: processor.c,v 1.27 2002/08/19 04:41:20 reinelt Exp $
+/* $Id: processor.c,v 1.28 2002/12/05 19:23:01 reinelt Exp $
*
* main data processing
*
@@ -20,6 +20,9 @@
*
*
* $Log: processor.c,v $
+ * Revision 1.28 2002/12/05 19:23:01 reinelt
+ * fixed undefined operations found by gcc3
+ *
* Revision 1.27 2002/08/19 04:41:20 reinelt
* introduced bar.c, moved bar stuff from display.h to bar.h
*
@@ -342,7 +345,7 @@ static double query_bar (int token)
case T_BATT_PERC:
{
static int alarm;
- alarm=(++alarm % 3);
+ alarm=((alarm+1) % 3);
if(value < atoi(cfg_get("battwarning")?:"10") && !alarm) /* flash bar */
value = 0;
return value/100;