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