From 06bdc70c73c9ac58fab991190f7334c010e66d1b Mon Sep 17 00:00:00 2001 From: Ashish Kumar Yadav Date: Sun, 20 Sep 2020 14:57:46 +0530 Subject: [PATCH] Comma will be more appropriate - updatestatus --- dwmblocks.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dwmblocks.c b/dwmblocks.c index d772cf1..cce1729 100644 --- a/dwmblocks.c +++ b/dwmblocks.c @@ -240,7 +240,7 @@ updatestatus() continue; skipdelimc: /* checking for the first byte has been done */ - c = current->cmdoutcur + 1; p = current->cmdoutprv + 1; + c = current->cmdoutcur + 1, p = current->cmdoutprv + 1; for (; *c != '\n' && *c != '\0'; c++, p++) /* contents of the current block just changed */ if (*c != *p) { @@ -282,12 +282,12 @@ update1: continue; } skipdelimu: - c = current->cmdoutcur; p = current->cmdoutprv; + c = current->cmdoutcur, p = current->cmdoutprv; update2: do { *(s++) = *c; *p = *c; - c++; p++; + c++, p++; } while (*c != '\n' && *c != '\0'); if (current->pathc && current->signal) *(s++) = current->signal;