diff options
author | Simon Quigley <tsimonq2@ubuntu.com> | 2017-06-19 14:38:48 -0500 |
---|---|---|
committer | Simon Quigley <tsimonq2@ubuntu.com> | 2017-06-19 14:38:48 -0500 |
commit | 7c47b5b9584f5011aeba18d7e1b26b3d3124825f (patch) | |
tree | 11b07e1c73a22a6ec5ebd710c9a72e972a4c571b /arch/linux/common/battery.h | |
parent | 4979bb6cbbbe39eb44c32530cd13f86bf44e5d77 (diff) |
Import Upstream version 0.5.1
Diffstat (limited to 'arch/linux/common/battery.h')
-rw-r--r-- | arch/linux/common/battery.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/linux/common/battery.h b/arch/linux/common/battery.h index 7dfa5423..d378fdef 100644 --- a/arch/linux/common/battery.h +++ b/arch/linux/common/battery.h @@ -217,7 +217,7 @@ __scan_battery_apm(void) if ((procapm = fopen("/proc/apm", "r"))) { int old_percentage = percentage; - fscanf(procapm, "%s %s %s 0x%x %s %s %d%%", + (void)fscanf(procapm, "%s %s %s 0x%x %s %s %d%%", apm_drv_ver, apm_bios_ver, trash, &ac_bat, trash, trash, &percentage); fclose(procapm); |