commit 6c47a05c6382f54c8a171151a9ade052b2b8fc20
parent 88c123d1b45233a998b93bd07d0c03e5b3efe973
Author: Kris Maglione <jg@suckless.org>
Date: Wed, 7 Feb 2007 12:45:00 -0500
Fix spacing in bar.c for loops.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/bar.c b/bar.c
@@ -71,7 +71,7 @@ draw_bar(WMScreen *s) {
goto MapBar;
largest = b = tb = nil;
tw = width = nb = size = 0;
- for(b = s->lbar, nb = 2 ;nb; --nb && (b = s->rbar))
+ for(b = s->lbar, nb = 2; nb; --nb && (b = s->rbar))
for(; b; b=b->next) {
b->brush.rect.x = b->brush.rect.y = 0;
b->brush.rect.width = def.font.height & ~1;
@@ -82,7 +82,7 @@ draw_bar(WMScreen *s) {
}
/* Not enough room. Shrink bars until they all fit */
if(width > s->brect.width) {
- for(b = s->lbar, nb = 2 ;nb; --nb && (b = s->rbar))
+ for(b = s->lbar, nb = 2; nb; --nb && (b = s->rbar))
for(; b; b = b->next) {
for(pb = &largest; *pb; pb = &(*pb)->smaller)
if((*pb)->brush.rect.width < b->brush.rect.width)
@@ -104,7 +104,7 @@ draw_bar(WMScreen *s) {
width += tw * shrink;
tb = nil;
}
- for(b = s->lbar, nb = 2 ;nb; b = s->rbar, nb--)
+ for(b = s->lbar, nb = 2; nb; b = s->rbar, nb--)
for(; b; tb = b, b = b->next) {
if(b == s->rbar) {
b->brush.align = EAST;