aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-01-29 04:16:01 +0000
committerWilliam Hubbs <w.d.hubbs@gmail.com>2023-01-29 11:32:22 -0600
commit28ecb38515d6a8a52fa524a5fee8fda3e7cb8252 (patch)
tree1fbcffe2f86826404fb75492d597dbe9b5b6266f /src
parent91737be1abe3b82b2dfa6ee44da735dd4686ae80 (diff)
openrc-shutdown: missing includes from IWYU
Diffstat (limited to 'src')
-rw-r--r--src/openrc-shutdown/broadcast.c25
-rw-r--r--src/openrc-shutdown/openrc-shutdown.c7
-rw-r--r--src/openrc-shutdown/sysvinit.c5
3 files changed, 19 insertions, 18 deletions
diff --git a/src/openrc-shutdown/broadcast.c b/src/openrc-shutdown/broadcast.c
index 05672ee0..232f4ab7 100644
--- a/src/openrc-shutdown/broadcast.c
+++ b/src/openrc-shutdown/broadcast.c
@@ -12,24 +12,23 @@
* This file may not be copied, modified, propagated, or distributed
* except according to the terms contained in the LICENSE file.
*/
-#include <ctype.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <sys/sysmacros.h>
-#include <limits.h>
+
+
+#include <fcntl.h>
+#include <paths.h>
+#include <pwd.h>
+#include <signal.h>
+#include <setjmp.h>
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <sys/stat.h>
+#include <sys/sysmacros.h>
+#include <sys/types.h>
+#include <sys/utsname.h>
#include <time.h>
#include <unistd.h>
-#include <stdio.h>
-#include <utmp.h>
#include <utmpx.h>
-#include <pwd.h>
-#include <fcntl.h>
-#include <signal.h>
-#include <setjmp.h>
-#include <paths.h>
-#include <sys/utsname.h>
#include "broadcast.h"
#include "helpers.h"
diff --git a/src/openrc-shutdown/openrc-shutdown.c b/src/openrc-shutdown/openrc-shutdown.c
index a2fae5f5..c73d8e6d 100644
--- a/src/openrc-shutdown/openrc-shutdown.c
+++ b/src/openrc-shutdown/openrc-shutdown.c
@@ -19,6 +19,7 @@
* except according to the terms contained in the LICENSE file.
*/
+#include <errno.h>
#include <getopt.h>
#include <signal.h>
#include <stdbool.h>
@@ -26,9 +27,11 @@
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
-#include <unistd.h>
#include <sys/types.h>
-#include <sys/utsname.h>
+#include <strings.h>
+#include <unistd.h>
+#include <time.h>
+#include <utmp.h>
#include "broadcast.h"
#include "einfo.h"
diff --git a/src/openrc-shutdown/sysvinit.c b/src/openrc-shutdown/sysvinit.c
index 84fc9ec2..bd5d5be0 100644
--- a/src/openrc-shutdown/sysvinit.c
+++ b/src/openrc-shutdown/sysvinit.c
@@ -17,11 +17,10 @@
#include <errno.h>
#include <fcntl.h>
-#include <stdlib.h>
+#include <stddef.h>
#include <string.h>
-#include <unistd.h>
#include <sys/stat.h>
-#include <sys/types.h>
+#include <unistd.h>
#include "einfo.h"
#include "sysvinit.h"