diff options
author | mzuther <mzuther@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2010-02-04 13:18:13 +0000 |
---|---|---|
committer | mzuther <mzuther@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2010-02-04 13:18:13 +0000 |
commit | 39494819fd4f2741de434edb798755c399c66319 (patch) | |
tree | f34621922a1604c51e2b7bb024e17ae0bdfb05ee | |
parent | 0dab110627d99bc1d2d5dbe1eec5765de1b287e9 (diff) | |
download | lcd4linux-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |