summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dwm.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/dwm.c b/dwm.c
index 72af32f..a4deccf 100644
--- a/dwm.c
+++ b/dwm.c
@@ -666,7 +666,7 @@ void
666expose(XEvent *e) { 666expose(XEvent *e) {
667 XExposeEvent *ev = &e->xexpose; 667 XExposeEvent *ev = &e->xexpose;
668 668
669 if(ev->count == 0) { 669 if(0 == ev->count) {
670 if(barwin == ev->window) 670 if(barwin == ev->window)
671 drawbar(); 671 drawbar();
672 } 672 }
@@ -780,7 +780,7 @@ gettextprop(Window w, Atom atom, char *text, unsigned int size) {
780 int n; 780 int n;
781 XTextProperty name; 781 XTextProperty name;
782 782
783 if(!text || size == 0) 783 if(!text || 0 == size)
784 return False; 784 return False;
785 text[0] = '\0'; 785 text[0] = '\0';
786 XGetTextProperty(dpy, w, &name, atom); 786 XGetTextProperty(dpy, w, &name, atom);
@@ -1398,7 +1398,7 @@ setmwfact(const char *arg) {
1398 if(!(ISTILE)) 1398 if(!(ISTILE))
1399 return; 1399 return;
1400 /* arg handling, manipulate mwfact */ 1400 /* arg handling, manipulate mwfact */
1401 if(arg == NULL) 1401 if(NULL == arg)
1402 mwfact = MWFACT; 1402 mwfact = MWFACT;
1403 else if(1 == sscanf(arg, "%lf", &delta)) { 1403 else if(1 == sscanf(arg, "%lf", &delta)) {
1404 if(arg[0] == '+' || arg[0] == '-') 1404 if(arg[0] == '+' || arg[0] == '-')
@@ -1515,8 +1515,8 @@ spawn(const char *arg) {
1515 return; 1515 return;
1516 /* The double-fork construct avoids zombie processes and keeps the code 1516 /* The double-fork construct avoids zombie processes and keeps the code
1517 * clean from stupid signal handlers. */ 1517 * clean from stupid signal handlers. */
1518 if(fork() == 0) { 1518 if(0 == fork()) {
1519 if(fork() == 0) { 1519 if(0 == fork()) {
1520 if(dpy) 1520 if(dpy)
1521 close(ConnectionNumber(dpy)); 1521 close(ConnectionNumber(dpy));
1522 setsid(); 1522 setsid();
@@ -1576,7 +1576,7 @@ tile(void) {
1576 nw = 0; /* gcc stupidity requires this */ 1576 nw = 0; /* gcc stupidity requires this */
1577 for(i = 0, c = mc = nexttiled(clients); c; c = nexttiled(c->next), i++) { 1577 for(i = 0, c = mc = nexttiled(clients); c; c = nexttiled(c->next), i++) {
1578 c->ismax = False; 1578 c->ismax = False;
1579 if(i == 0) { /* master */ 1579 if(0 == i) { /* master */
1580 nw = mw - 2 * c->border; 1580 nw = mw - 2 * c->border;
1581 nh = wah - 2 * c->border; 1581 nh = wah - 2 * c->border;
1582 } 1582 }
@@ -1836,7 +1836,7 @@ view(const char *arg) {
1836 1836
1837 memcpy(prevtags, seltags, sizeof seltags); 1837 memcpy(prevtags, seltags, sizeof seltags);
1838 for(i = 0; i < NTAGS; i++) 1838 for(i = 0; i < NTAGS; i++)
1839 seltags[i] = arg == NULL; 1839 seltags[i] = (NULL == arg);
1840 seltags[idxoftag(arg)] = True; 1840 seltags[idxoftag(arg)] = True;
1841 arrange(); 1841 arrange();
1842} 1842}