aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-01-29 04:16:48 +0000
committerWilliam Hubbs <w.d.hubbs@gmail.com>2023-01-29 11:32:22 -0600
commitb4056819264e49473287b3a454cff542b7d415a4 (patch)
treea25bbea7570b11984d04ec4e88bc3675b22f2e14
parentd5700d036ae285a4af9c7266aff6f3dfbaf1f156 (diff)
start-stop-daemon: missing includes from IWYU
-rw-r--r--src/start-stop-daemon/pipes.c2
-rw-r--r--src/start-stop-daemon/start-stop-daemon.c33
2 files changed, 16 insertions, 19 deletions
diff --git a/src/start-stop-daemon/pipes.c b/src/start-stop-daemon/pipes.c
index 506196d5..5251a4f0 100644
--- a/src/start-stop-daemon/pipes.c
+++ b/src/start-stop-daemon/pipes.c
@@ -16,8 +16,8 @@
*/
#include <stdlib.h>
-#include <unistd.h>
#include <sys/types.h>
+#include <unistd.h>
#include "pipes.h"
diff --git a/src/start-stop-daemon/start-stop-daemon.c b/src/start-stop-daemon/start-stop-daemon.c
index 56f85cba..07fab393 100644
--- a/src/start-stop-daemon/start-stop-daemon.c
+++ b/src/start-stop-daemon/start-stop-daemon.c
@@ -26,47 +26,44 @@
# define _GNU_SOURCE
#endif
-#include <sys/types.h>
-#include <sys/ioctl.h>
-#include <sys/resource.h>
-#include <sys/stat.h>
-#include <termios.h>
-#include <sys/time.h>
-#include <sys/wait.h>
-
-#ifdef __linux__
-#include <sys/syscall.h> /* For io priority */
-#include <sys/prctl.h> /* For prctl */
-#endif
-
-#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <getopt.h>
#include <limits.h>
#include <grp.h>
#include <pwd.h>
+#include <sched.h>
#include <signal.h>
+#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <sys/ioctl.h>
+#include <sys/resource.h>
+#include <sys/stat.h>
+#include <sys/time.h>
+#include <sys/types.h>
+#include <sys/wait.h>
+#ifdef __linux__
+# include <sys/syscall.h> /* For io priority */
+# include <sys/prctl.h> /* For prctl */
+#endif
+#include <termios.h>
#include <time.h>
#include <unistd.h>
#ifdef HAVE_PAM
-#include <security/pam_appl.h>
+# include <security/pam_appl.h>
/* We are not supporting authentication conversations */
static struct pam_conv conv = { NULL, NULL};
#endif
#ifdef HAVE_CAP
-#include <sys/capability.h>
+# include <sys/capability.h>
#endif
-#include <sched.h>
-
#include "einfo.h"
#include "queue.h"
#include "rc.h"