Xinqi Bao's Git
projects
/
slstatus.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
keymap: Add braces for for loop
[slstatus.git]
/
components
/
keymap.c
diff --git
a/components/keymap.c
b/components/keymap.c
index
358a2ca
..
aed408e
100644
(file)
--- 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;
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;
}
if (strstr(sym, EXCLUDES[i])) {
return 0;
}
+ }
return 1;
}
return 1;
}