Commit: 00d8fd4d22d3f41c25e0f34cc016a8e641af219c
Parent: 31a83fd8f37c47a824636005ac3b4d4e96772914
Author: Randy Palamar
Date:   Fri, 23 Apr 2021 08:52:15 -0600
minor tweak
i is being divided so it doesn't matter if it is zero
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/status.c b/status.c
@@ -13,12 +13,12 @@
 
 #define STATUSLEN ((LEN(blks) - 1) * BLOCKLEN + 1)
 
-static int dflag = 0;
 char buf[BLOCKLEN - BLOCKPAD];
 
 static Display *dpy;
-static struct Block *dirty;
+static int dflag = 0;
 static sigset_t blocksigmask;
+static struct Block *dirty;
 
 static void
 terminate(int signo)
@@ -137,7 +137,7 @@ statusloop(void)
 			updateblock(b);
 	updatestatus();
 
-	for (i = 1; ; (++i == 0? i++ : i)) {
+	for (i = 1; ; i++) {
 		sigprocmask(SIG_UNBLOCK, &blocksigmask, NULL);
 		t.tv_sec = INTERVAL_SEC;
 		t.tv_nsec = INTERVAL_NANO;