From 7ac3e2a7d2c23ea71adeb56d8afbe1b1cbeee4df Mon Sep 17 00:00:00 2001 From: reinelt Date: Sun, 20 Jun 2004 10:09:56 +0000 Subject: [lcd4linux @ 2004-06-20 10:09:52 by reinelt] 'const'ified the whole source git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@476 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- timer.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'timer.c') diff --git a/timer.c b/timer.c index 6d478d0..14b8239 100644 --- a/timer.c +++ b/timer.c @@ -1,4 +1,4 @@ -/* $Id: timer.c,v 1.7 2004/06/01 06:45:30 reinelt Exp $ +/* $Id: timer.c,v 1.8 2004/06/20 10:09:56 reinelt Exp $ * * generic timer handling * @@ -21,6 +21,10 @@ * * * $Log: timer.c,v $ + * Revision 1.8 2004/06/20 10:09:56 reinelt + * + * 'const'ified the whole source + * * Revision 1.7 2004/06/01 06:45:30 reinelt * * some Fixme's processed @@ -99,7 +103,7 @@ TIMER *Timers=NULL; int nTimers=0; -static void timer_inc (struct timeval *tv, int msec) +static void timer_inc (struct timeval *tv, const int msec) { tv->tv_sec += msec / 1000; tv->tv_usec += (msec - 1000*(msec/1000)) * 1000; @@ -111,7 +115,7 @@ static void timer_inc (struct timeval *tv, int msec) } -int timer_add (void (*callback)(void *data), void *data, int interval, int one_shot) +int timer_add (void (*callback)(void *data), void *data, const int interval, const int one_shot) { int i; struct timeval now; -- cgit v1.2.3