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 | |
parent | 22f8f8000cac3cc43b721a03741b74be212db2eb (diff) |
IWYU update
-rw-r--r-- | CRT.c | 1 | ||||
-rw-r--r-- | ColorsPanel.c | 1 | ||||
-rw-r--r-- | Compat.h | 2 | ||||
-rw-r--r-- | DisplayOptionsPanel.c | 1 | ||||
-rw-r--r-- | Hashtable.c | 1 | ||||
-rw-r--r-- | Meter.c | 1 | ||||
-rw-r--r-- | OptionItem.c | 2 | ||||
-rw-r--r-- | Process.h | 1 | ||||
-rw-r--r-- | ProcessList.c | 1 | ||||
-rw-r--r-- | Settings.h | 1 | ||||
-rw-r--r-- | XUtils.c | 1 | ||||
-rw-r--r-- | XUtils.h | 1 | ||||
-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 |
18 files changed, 13 insertions, 13 deletions
@@ -11,7 +11,6 @@ in the source distribution for its full text. #include <errno.h> #include <langinfo.h> -#include <locale.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> diff --git a/ColorsPanel.c b/ColorsPanel.c index 69927092..2fb1c92f 100644 --- a/ColorsPanel.c +++ b/ColorsPanel.c @@ -18,7 +18,6 @@ in the source distribution for its full text. #include "ProvideCurses.h" #include "RichString.h" #include "Vector.h" -#include "XUtils.h" // TO ADD A NEW SCHEME: @@ -12,7 +12,7 @@ in the source distribution for its full text. #include <fcntl.h> #include <stddef.h> #include <unistd.h> -#include <sys/stat.h> +#include <sys/stat.h> // IWYU pragma: keep int Compat_faccessat(int dirfd, diff --git a/DisplayOptionsPanel.c b/DisplayOptionsPanel.c index e0d4cfd8..ed373190 100644 --- a/DisplayOptionsPanel.c +++ b/DisplayOptionsPanel.c @@ -18,7 +18,6 @@ in the source distribution for its full text. #include "Object.h" #include "OptionItem.h" #include "ProvideCurses.h" -#include "XUtils.h" static const char* const DisplayOptionsFunctions[] = {" ", " ", " ", " ", " ", " ", " ", " ", " ", "Done ", NULL}; diff --git a/Hashtable.c b/Hashtable.c index cd48fc46..1beb2bb2 100644 --- a/Hashtable.c +++ b/Hashtable.c @@ -13,6 +13,7 @@ in the source distribution for its full text. #include <stdint.h> #include <stdio.h> #include <stdlib.h> +#include <string.h> #include "Macros.h" #include "XUtils.h" @@ -20,6 +20,7 @@ in the source distribution for its full text. #include "Object.h" #include "ProvideCurses.h" #include "RichString.h" +#include "Settings.h" #include "XUtils.h" diff --git a/OptionItem.c b/OptionItem.c index 625a994f..00001fce 100644 --- a/OptionItem.c +++ b/OptionItem.c @@ -12,7 +12,9 @@ in the source distribution for its full text. #include <stdlib.h> #include "CRT.h" +#include "Macros.h" #include "RichString.h" +#include "XUtils.h" static void OptionItem_delete(Object* cast) { @@ -10,7 +10,6 @@ in the source distribution for its full text. #include <stdbool.h> #include <stdint.h> -#include <unistd.h> #include <sys/types.h> #include "Object.h" diff --git a/ProcessList.c b/ProcessList.c index fb4ba481..2d273398 100644 --- a/ProcessList.c +++ b/ProcessList.c @@ -14,6 +14,7 @@ in the source distribution for its full text. #include "CRT.h" #include "Hashtable.h" +#include "Macros.h" #include "Vector.h" #include "XUtils.h" @@ -10,6 +10,7 @@ in the source distribution for its full text. #include "config.h" // IWYU pragma: keep #include <stdbool.h> +#include <stdint.h> #include "Process.h" @@ -11,6 +11,7 @@ in the source distribution for its full text. #include <assert.h> #include <errno.h> +#include <fcntl.h> #include <stdarg.h> #include <stdlib.h> #include <string.h> @@ -13,6 +13,7 @@ in the source distribution for its full text. #include <stdio.h> #include <stdlib.h> // IWYU pragma: keep #include <string.h> // IWYU pragma: keep +#include <sys/types.h> #include "Compat.h" #include "Macros.h" 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> |