summaryrefslogtreecommitdiff
path: root/battstat/apmlib/apm.h
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-07-27 08:46:27 +0200
committerraveit65 <[email protected]>2020-08-07 14:45:01 +0200
commitde05d11aadbb0881613df6dbf13717781930a22b (patch)
tree5ed75ef9f90d22eb615e3872ca4fa4eb379ce4e1 /battstat/apmlib/apm.h
parent5cbe2698bd1b575774b33e28ab365e0695313e88 (diff)
downloadmate-applets-de05d11aadbb0881613df6dbf13717781930a22b.tar.bz2
mate-applets-de05d11aadbb0881613df6dbf13717781930a22b.tar.xz
battstat: invalidScanfArgType_int cppcheck warnings (/proc/apm)
Diffstat (limited to 'battstat/apmlib/apm.h')
-rw-r--r--battstat/apmlib/apm.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/battstat/apmlib/apm.h b/battstat/apmlib/apm.h
index fd1f6eb6..5b44ab71 100644
--- a/battstat/apmlib/apm.h
+++ b/battstat/apmlib/apm.h
@@ -41,10 +41,10 @@ typedef struct apm_info
const char driver_version[10];
int apm_version_major;
int apm_version_minor;
- int apm_flags;
- int ac_line_status;
- int battery_status;
- int battery_flags;
+ unsigned short apm_flags;
+ unsigned short ac_line_status;
+ unsigned short battery_status;
+ unsigned short battery_flags;
int battery_percentage;
int battery_time;
int using_minutes;