Introduction
Introduction Statistics Contact Development Disclaimer Help
keymap: Add braces for for loop - slstatus - status monitor
git clone git://git.suckless.org/slstatus
Log
Files
Refs
README
LICENSE
---
commit d6ad87ce06593979b397fe1a01fc5fe9cb86e6a9
parent 385aedffd90e513cc007e44e57785d7c3d934f6f
Author: Aaron Marcher <[email protected]>
Date: Wed, 23 May 2018 13:30:45 +0200
keymap: Add braces for for loop
Diffstat:
M components/keymap.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/components/keymap.c b/components/keymap.c
@@ -20,10 +20,11 @@ IsLayoutOrVariant(char *sym)
static const char* EXCLUDES[] = { "evdev", "inet", "pc", "base" };
size_t i;
- for (i = 0; i < sizeof(EXCLUDES)/sizeof(EXCLUDES[0]); ++i)
+ for (i = 0; i < sizeof(EXCLUDES)/sizeof(EXCLUDES[0]); ++i) {
if (strstr(sym, EXCLUDES[i])) {
return 0;
}
+ }
return 1;
}
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.