aboutsummaryrefslogtreecommitdiff
path: root/modules/devices/battery.c
diff options
context:
space:
mode:
authorLucas de Castro Borges <lucas@gnuabordo.com.br>2024-04-22 19:19:56 -0300
committerLucas de Castro Borges <lucas@gnuabordo.com.br>2024-04-22 19:19:56 -0300
commitfbf360db614483cc1655e47be4744b5bd00d54f5 (patch)
tree15cf74264e91ede73e5d4a0e18a3d32091ceddc2 /modules/devices/battery.c
parent647775860805ea26a377c10d1490686a6f7a3434 (diff)
parent0574020490ffae5686b0c75d7753bfbcf2286114 (diff)
Update upstream source from tag 'upstream/2.0.17pre'
Update to upstream version '2.0.17pre' with Debian dir 5d26fb98f3078817a456822b48c33e4ffac5c49e
Diffstat (limited to 'modules/devices/battery.c')
-rw-r--r--modules/devices/battery.c2
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);