summaryrefslogtreecommitdiff
path: root/components/battery.c
diff options
context:
space:
mode:
authordrkhsh <me@drkhsh.at>2022-10-28 00:49:31 +0200
committerdrkhsh <me@drkhsh.at>2022-10-28 01:03:31 +0200
commit0c8ac6edf9ad50506465db3fb70535ab561e6872 (patch)
treec7859bd5b27dcc4ee9a2c84b939d099c42167a9c /components/battery.c
parent8c15f9d480503d8edbfc41edb31861b00b13cbb0 (diff)
radical re-formatting 1/3: Fix spacing
Fixes coding style. Formatting commits suck, incoherent coding style sucks more. https://suckless.org/coding_style/
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 "?";
}
}