[hackers] wmii: new tip (= 1775)

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Wed, 07 Feb 2007 18:50:04 +0100

changeset: 1775:fafd2716d4fd
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Wed Feb 07 12:45:00 2007 -0500
files: bar.c
description:
Fix spacing in bar.c for loops.

diff -r 32be2e2f26f4 -r fafd2716d4fd bar.c
--- a/bar.c Wed Feb 07 18:32:57 2007 +0100
+++ b/bar.c Wed Feb 07 12:45:00 2007 -0500
@@ -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;
Received on Wed Feb 07 2007 - 18:50:04 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:54:58 UTC