From: mzuther Date: Thu, 4 Feb 2010 13:18:13 +0000 (+0000) Subject: According to its man page, timercmp() is broken on some systems -- applied the recomm... X-Git-Tag: svn1203~103 X-Git-Url: https://git.webhop.me/?a=commitdiff_plain;h=39494819fd4f2741de434edb798755c399c66319;p=lcd4linux.git 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 --- 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) {