diff options
author | reinelt <> | 2004-06-20 10:09:56 +0000 |
---|---|---|
committer | reinelt <> | 2004-06-20 10:09:56 +0000 |
commit | 1d9ddbf5fa1210cbc323ac73a7a212289dd95769 (patch) | |
tree | c9fe5fa4426d7334d8486a3a7e59c64a43d2ef9e /timer.c | |
parent | 4f15e68bb72bea1ad96689c49ff65228ee677346 (diff) | |
download | lcd4linux-1d9ddbf5fa1210cbc323ac73a7a212289dd95769.tar.gz |
[lcd4linux @ 2004-06-20 10:09:52 by reinelt]
'const'ified the whole source
Diffstat (limited to '')
-rw-r--r-- | timer.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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; |