[dev] [st] [PATCH 2/5] Replace for with while.

From: noname <noname_AT_inventati.org>
Date: Sat, 18 Apr 2015 16:45:11 +0000

---
 st.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/st.c b/st.c
index 3fa58da..30f296d 100644
--- a/st.c
+++ b/st.c
_AT_@ -3930,8 +3930,9 @@ run(void) {
 
 	clock_gettime(CLOCK_MONOTONIC, &last);
 	lastblink = last;
+	xev = actionfps;
 
-	for(xev = actionfps;;) {
+	while(1) {
 		FD_ZERO(&rfd);
 		FD_SET(cmdfd, &rfd);
 		FD_SET(xfd, &rfd);
-- 
1.8.4
Received on Sat Apr 18 2015 - 18:45:11 CEST

This archive was generated by hypermail 2.3.0 : Sat Apr 18 2015 - 18:48:19 CEST