From 39494819fd4f2741de434edb798755c399c66319 Mon Sep 17 00:00:00 2001 From: mzuther Date: Thu, 4 Feb 2010 13:18:13 +0000 Subject: According to its man page, timercmp() is broken on some systems -- applied the recommended (and equivalent) change. git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1100 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'timer.c') diff --git a/timer.c b/timer.c index 5ac2965..3bb504d 100644 --- a/timer.c +++ b/timer.c @@ -174,7 +174,7 @@ int timer_process(struct timespec *delay) for (i = 0; i < nTimers; i++) { if (Timers[i].active == 0) continue; - if (timercmp(&Timers[i].when, &now, <=)) { + if (!timercmp(&Timers[i].when, &now, >)) { flag = 1; /* callback */ if (Timers[i].callback != NULL) { -- cgit v1.2.3