aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormzuther <mzuther@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2010-02-04 13:18:13 +0000
committermzuther <mzuther@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2010-02-04 13:18:13 +0000
commit39494819fd4f2741de434edb798755c399c66319 (patch)
treef34621922a1604c51e2b7bb024e17ae0bdfb05ee
parent0dab110627d99bc1d2d5dbe1eec5765de1b287e9 (diff)
downloadlcd4linux-39494819fd4f2741de434edb798755c399c66319.tar.gz
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
Diffstat (limited to '')
-rw-r--r--timer.c2
1 files changed, 1 insertions, 1 deletions
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) {