aboutsummaryrefslogtreecommitdiffstats
path: root/timer.c
diff options
context:
space:
mode:
authorreinelt <>2004-03-03 04:44:16 +0000
committerreinelt <>2004-03-03 04:44:16 +0000
commit9343d98c97ce8130374cd1c6b702c336e1ae0666 (patch)
treebf6491cefb0134736fc5f971226f54074be7324f /timer.c
parent9b7d2e2732d586f86c3458053a20120b79936621 (diff)
downloadlcd4linux-9343d98c97ce8130374cd1c6b702c336e1ae0666.tar.gz
[lcd4linux @ 2004-03-03 04:44:16 by reinelt]
changes (cosmetics?) to the big patch from Martin hash patch un-applied
Diffstat (limited to '')
-rw-r--r--timer.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/timer.c b/timer.c
index 262a543..ed98783 100644
--- a/timer.c
+++ b/timer.c
@@ -1,4 +1,4 @@
-/* $Id: timer.c,v 1.5 2004/03/03 03:47:04 reinelt Exp $
+/* $Id: timer.c,v 1.6 2004/03/03 04:44:16 reinelt Exp $
*
* generic timer handling
*
@@ -21,6 +21,10 @@
*
*
* $Log: timer.c,v $
+ * Revision 1.6 2004/03/03 04:44:16 reinelt
+ * changes (cosmetics?) to the big patch from Martin
+ * hash patch un-applied
+ *
* Revision 1.5 2004/03/03 03:47:04 reinelt
* big patch from Martin Hejl:
* - use qprintf() where appropriate
@@ -195,9 +199,13 @@ int timer_process (struct timespec *delay)
}
-void timer_exit() {
- if (nTimers>0) {
- nTimers=0;
+
+void timer_exit(void) {
+
+ nTimers=0;
+
+ if (Timers>0) {
free(Timers);;
+ Timers=NULL;
}
}