X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/7be675f154e3922fb8e2c9309b48f9fa12869817..ca8a146f03622149fbf9378e72b6ca02f25c5e55:/components/battery.c diff --git a/components/battery.c b/components/battery.c index 0871953..a63b9d0 100644 --- a/components/battery.c +++ b/components/battery.c @@ -77,7 +77,8 @@ const char * battery_state(const char *bat) { - int fd, i; + int fd; + size_t i; struct apm_power_info apm_info; struct { unsigned int state;