Improved consistency in coding style

This commit is contained in:
Ashish Kumar Yadav 2020-07-25 03:03:29 +05:30
parent 03d6a25af7
commit c2ab94a4dc

View file

@ -37,7 +37,7 @@ static void termhandler(int signum);
static int updatestatus();
static void writepid();
static int statusContinue = 1;
static int statuscontinue = 1;
static char statusstr[STTLENGTH];
static size_t delimlength;
static Display *dpy;
@ -155,10 +155,9 @@ void
sighandler(int signal, siginfo_t *si, void *ucontext)
{
signal -= SIGRTMIN;
for (Block *current = blocks; current->pathu; current++) {
for (Block *current = blocks; current->pathu; current++)
if (current->signal == signal)
getcmd(current, si->si_value.sival_int);
}
setroot();
}
@ -174,7 +173,7 @@ statusloop()
setroot();
sleep(SLEEPINTERVAL);
i = SLEEPINTERVAL;
while (statusContinue) {
while (statuscontinue) {
for (Block *current = blocks; current->pathu; current++)
if (current->interval > 0 && i % current->interval == 0)
getcmd(current, NILL);
@ -187,7 +186,7 @@ statusloop()
void
termhandler(int signum)
{
statusContinue = 0;
statuscontinue = 0;
}
/* returns whether block outputs have changed and updates statusstr if they have */