[hackers] [slstatus] keymap: Add braces for for loop || Aaron Marcher
commit d6ad87ce06593979b397fe1a01fc5fe9cb86e6a9
Author: Aaron Marcher <me_AT_drkhsh.at>
AuthorDate: Wed May 23 13:30:45 2018 +0200
Commit: Aaron Marcher <me_AT_drkhsh.at>
CommitDate: Wed May 23 13:30:45 2018 +0200
keymap: Add braces for for loop
diff --git a/components/keymap.c b/components/keymap.c
index 358a2ca..aed408e 100644
--- a/components/keymap.c
+++ b/components/keymap.c
_AT_@ -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;
}
Received on Wed May 23 2018 - 19:56:41 CEST
This archive was generated by hypermail 2.3.0
: Wed May 23 2018 - 20:00:27 CEST