summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-12-06 15:22:41 +0100
committerBenBE <BenBE@geshi.org>2020-12-06 15:32:16 +0100
commit7ba25aa3c47859dd57ab88fc8fcf4006edb1ef6b (patch)
tree0229f8a4bbcf980a1f3e3f495e1f61c3139f942d
parent22f8f8000cac3cc43b721a03741b74be212db2eb (diff)
IWYU update
-rw-r--r--CRT.c1
-rw-r--r--ColorsPanel.c1
-rw-r--r--Compat.h2
-rw-r--r--DisplayOptionsPanel.c1
-rw-r--r--Hashtable.c1
-rw-r--r--Meter.c1
-rw-r--r--OptionItem.c2
-rw-r--r--Process.h1
-rw-r--r--ProcessList.c1
-rw-r--r--Settings.h1
-rw-r--r--XUtils.c1
-rw-r--r--XUtils.h1
-rw-r--r--linux/LibSensors.c1
-rw-r--r--linux/LinuxProcess.c1
-rw-r--r--linux/LinuxProcess.h3
-rw-r--r--linux/LinuxProcessList.c5
-rw-r--r--linux/Platform.c1
-rw-r--r--linux/SELinuxMeter.c1
18 files changed, 13 insertions, 13 deletions
diff --git a/CRT.c b/CRT.c
index 192a6aca..68f64054 100644
--- a/CRT.c
+++ b/CRT.c
@@ -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:
diff --git a/Compat.h b/Compat.h
index 3b567736..94c2ee2f 100644
--- a/Compat.h
+++ b/Compat.h
@@ -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"
diff --git a/Meter.c b/Meter.c
index 06723745..71457d4d 100644
--- a/Meter.c
+++ b/Meter.c
@@ -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) {
diff --git a/Process.h b/Process.h
index 67f7bcc5..7a68c69f 100644
--- a/Process.h
+++ b/Process.h
@@ -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"
diff --git a/Settings.h b/Settings.h
index dab531f7..752970a1 100644
--- a/Settings.h
+++ b/Settings.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"
diff --git a/XUtils.c b/XUtils.c
index 23ec39e7..743d98bf 100644
--- a/XUtils.c
+++ b/XUtils.c
@@ -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>
diff --git a/XUtils.h b/XUtils.h
index d004785f..e0aeebe2 100644
--- a/XUtils.h
+++ b/XUtils.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>

© 2014-2024 Faster IT GmbH | imprint | privacy policy