diff options
author | hwspeedy <ns@bigbear.dk> | 2024-03-14 13:25:09 +0100 |
---|---|---|
committer | hwspeedy <ns@bigbear.dk> | 2024-03-14 13:25:09 +0100 |
commit | 48039e8c9350c9e55d3d939d430dd4f9dfd288c5 (patch) | |
tree | 9364ce21b5bfaad264fd0297471ff821659bf4a7 /modules/devices/battery.c | |
parent | 66246c7746387b27f22581befa76c12bdbf242f0 (diff) |
FIX GCC warnings and 3 potential crash never seen
Diffstat (limited to 'modules/devices/battery.c')
-rw-r--r-- | modules/devices/battery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/devices/battery.c b/modules/devices/battery.c index e356c14a..784a6cc5 100644 --- a/modules/devices/battery.c +++ b/modules/devices/battery.c @@ -312,7 +312,7 @@ __scan_battery_apm(void) if ((procapm = fopen("/proc/apm", "r"))) { int old_percentage = percentage; - (void)fscanf(procapm, "%s %s %s 0x%x %s %s %d%%", + int c=fscanf(procapm, "%s %s %s 0x%x %s %s %d%%", apm_drv_ver, apm_bios_ver, trash, &ac_bat, trash, trash, &percentage); fclose(procapm); |