diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-12-06 15:22:41 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2020-12-06 15:32:16 +0100 |
commit | 7ba25aa3c47859dd57ab88fc8fcf4006edb1ef6b (patch) | |
tree | 0229f8a4bbcf980a1f3e3f495e1f61c3139f942d /linux | |
parent | 22f8f8000cac3cc43b721a03741b74be212db2eb (diff) |
IWYU update
Diffstat (limited to 'linux')
-rw-r--r-- | linux/LibSensors.c | 1 | ||||
-rw-r--r-- | linux/LinuxProcess.c | 1 | ||||
-rw-r--r-- | linux/LinuxProcess.h | 3 | ||||
-rw-r--r-- | linux/LinuxProcessList.c | 5 | ||||
-rw-r--r-- | linux/Platform.c | 1 | ||||
-rw-r--r-- | linux/SELinuxMeter.c | 1 |
6 files changed, 4 insertions, 8 deletions
diff --git a/linux/LibSensors.c b/linux/LibSensors.c index 1f3bd8de..a30e21b6 100644 --- a/linux/LibSensors.c +++ b/linux/LibSensors.c @@ -4,7 +4,6 @@ #include <dlfcn.h> #include <errno.h> -#include <limits.h> #include <sensors/sensors.h> #include "XUtils.h" diff --git a/linux/LinuxProcess.c b/linux/LinuxProcess.c index 5cff5703..f51cf1e3 100644 --- a/linux/LinuxProcess.c +++ b/linux/LinuxProcess.c @@ -11,6 +11,7 @@ in the source distribution for its full text. #include <math.h> #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <syscall.h> #include <unistd.h> diff --git a/linux/LinuxProcess.h b/linux/LinuxProcess.h index 41127113..ad396fb2 100644 --- a/linux/LinuxProcess.h +++ b/linux/LinuxProcess.h @@ -8,10 +8,9 @@ Released under the GNU GPLv2, see the COPYING file in the source distribution for its full text. */ -#include "config.h" +#include "config.h" // IWYU pragma: keep #include <stdbool.h> -#include <sys/types.h> #include "IOPriority.h" #include "Object.h" diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c index 7f9efee1..b9ba247f 100644 --- a/linux/LinuxProcessList.c +++ b/linux/LinuxProcessList.c @@ -13,18 +13,17 @@ in the source distribution for its full text. #include <dirent.h> #include <errno.h> #include <fcntl.h> -#include <inttypes.h> +#include <limits.h> #include <math.h> #include <stdbool.h> +#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <strings.h> #include <unistd.h> #include <sys/stat.h> #include <sys/time.h> #include <sys/types.h> -#include <sys/utsname.h> #ifdef HAVE_DELAYACCT #include <linux/netlink.h> diff --git a/linux/Platform.c b/linux/Platform.c index dc917459..590fc7aa 100644 --- a/linux/Platform.c +++ b/linux/Platform.c @@ -12,7 +12,6 @@ in the source distribution for its full text. #include <assert.h> #include <ctype.h> #include <dirent.h> -#include <errno.h> #include <fcntl.h> #include <inttypes.h> #include <limits.h> diff --git a/linux/SELinuxMeter.c b/linux/SELinuxMeter.c index 07094a4f..a8b07bd3 100644 --- a/linux/SELinuxMeter.c +++ b/linux/SELinuxMeter.c @@ -9,7 +9,6 @@ in the source distribution for its full text. #include "CRT.h" -#include <fcntl.h> #include <stdbool.h> #include <stdio.h> #include <unistd.h> |