summaryrefslogtreecommitdiff
path: root/components/battery.c
diff options
context:
space:
mode:
Diffstat (limited to 'components/battery.c')
-rw-r--r--components/battery.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/components/battery.c b/components/battery.c
index 3746095..00ae70a 100644
--- a/components/battery.c
+++ b/components/battery.c
@@ -226,14 +226,14 @@
if (sysctlbyname(BATTERY_STATE, &state, &len, NULL, 0) < 0 || !len)
return NULL;
- switch(state) {
- case 0:
- case 2:
- return "+";
- case 1:
- return "-";
- default:
- return "?";
+ switch (state) {
+ case 0: /* FALLTHROUGH */
+ case 2:
+ return "+";
+ case 1:
+ return "-";
+ default:
+ return "?";
}
}