X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/7be675f154e3922fb8e2c9309b48f9fa12869817..b759662983a159da8a3c361f4f222287b2e43331:/components/battery.c diff --git a/components/battery.c b/components/battery.c index 0871953..49f43e6 100644 --- a/components/battery.c +++ b/components/battery.c @@ -52,7 +52,7 @@ #include const char * - battery_perc(const char *null) + battery_perc(const char *unused) { struct apm_power_info apm_info; int fd; @@ -75,9 +75,10 @@ } const char * - battery_state(const char *bat) + battery_state(const char *unused) { - int fd, i; + int fd; + size_t i; struct apm_power_info apm_info; struct { unsigned int state;