From 4b3d551f38c4dbba096577bbbd2466afc37fe7aa Mon Sep 17 00:00:00 2001 From: reinelt <> Date: Thu, 5 Dec 2002 19:23:01 +0000 Subject: [lcd4linux @ 2002-12-05 19:23:01 by reinelt] fixed undefined operations found by gcc3 --- processor.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'processor.c') 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; -- cgit v1.2.3