aboutsummarylogtreecommitdiffstats
path: root/layout.c
diff options
context:
space:
mode:
authorAnselm R. Garbe2007-08-16 18:41:22 +0200
committerAnselm R. Garbe2007-08-16 18:41:22 +0200
commit1c1368ee4bd6beedbaff5b5b92e6925cb9d636e2 (patch)
tree3064adde033038473713bd1bc8f449e097b7bdc8 /layout.c
parent3c55374f664637043d41fd0476f7014ff4ebeee2 (diff)
downloadaur-1c1368ee4bd6beedbaff5b5b92e6925cb9d636e2.tar.gz
made plural arrays
Diffstat (limited to 'layout.c')
-rw-r--r--layout.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/layout.c b/layout.c
index c4670801b35d..46e82c2ad834 100644
--- a/layout.c
+++ b/layout.c
@@ -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();