commit 8e7bd4d2aa1fed264b96189047005f0982e2ffae
parent c89ef49965a37d1af50836e8f9c7fd33656c37e6
Author: Ivan Tham <pickfire@riseup.net>
Date: Mon, 11 Jul 2016 20:35:56 +0800
Simplify infinal loop
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/spt.c b/spt.c
@@ -123,7 +123,7 @@ run:
for (timecount = 0; timecount < timers[i].tmr; timecount++)
sleep(1);
- i + 1 >= LEN(timers) ? i = 0 : i++; /* i infinal loop */
+ i < LEN(timers) ? i++ : i = 0; /* i infinal loop */
goto run;
return 0;