diff options
author | Anselm R. Garbe <garbeam@gmail.com> | 2007-08-16 18:41:22 +0200 |
---|---|---|
committer | Anselm R. Garbe <garbeam@gmail.com> | 2007-08-16 18:41:22 +0200 |
commit | 04dec4c94390fdf57893615de5b5872dd5abbce4 (patch) | |
tree | 70baf422ae086ea7467c4550a0cfd0b9f288b4d7 /layout.c | |
parent | e40448fd6340620354d82d801d975eaa53dbd924 (diff) | |
download | dwm-04dec4c94390fdf57893615de5b5872dd5abbce4.tar dwm-04dec4c94390fdf57893615de5b5872dd5abbce4.tar.gz dwm-04dec4c94390fdf57893615de5b5872dd5abbce4.tar.bz2 |
made plural arrays
Diffstat (limited to 'layout.c')
-rw-r--r-- | layout.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -94,10 +94,10 @@ void initlayouts(void) { unsigned int i, w; - lt = &layout[0]; - nlayouts = sizeof layout / sizeof layout[0]; + lt = &layouts[0]; + nlayouts = sizeof layouts / sizeof layouts[0]; for(blw = i = 0; i < nlayouts; i++) { - w = textw(layout[i].symbol); + w = textw(layouts[i].symbol); if(w > blw) blw = w; } @@ -144,14 +144,14 @@ setlayout(const char *arg) { if(!arg) { lt++; - if(lt == layout + nlayouts) - lt = layout; + if(lt == layouts + nlayouts) + lt = layouts; } else { i = atoi(arg); if(i < 0 || i >= nlayouts) return; - lt = &layout[i]; + lt = &layouts[i]; } if(sel) arrange(); |