openrc-shutdown: missing includes from IWYU

This commit is contained in:
Sam James 2023-01-29 04:16:01 +00:00 committed by William Hubbs
parent 91737be1ab
commit 28ecb38515
3 changed files with 20 additions and 19 deletions

View File

@ -12,24 +12,23 @@
* This file may not be copied, modified, propagated, or distributed * This file may not be copied, modified, propagated, or distributed
* except according to the terms contained in the LICENSE file. * 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 <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <stdio.h>
#include <utmp.h>
#include <utmpx.h>
#include <pwd.h>
#include <fcntl.h> #include <fcntl.h>
#include <paths.h>
#include <pwd.h>
#include <signal.h> #include <signal.h>
#include <setjmp.h> #include <setjmp.h>
#include <paths.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 <sys/utsname.h>
#include <time.h>
#include <unistd.h>
#include <utmpx.h>
#include "broadcast.h" #include "broadcast.h"
#include "helpers.h" #include "helpers.h"

View File

@ -19,6 +19,7 @@
* except according to the terms contained in the LICENSE file. * except according to the terms contained in the LICENSE file.
*/ */
#include <errno.h>
#include <getopt.h> #include <getopt.h>
#include <signal.h> #include <signal.h>
#include <stdbool.h> #include <stdbool.h>
@ -26,9 +27,11 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <syslog.h> #include <syslog.h>
#include <unistd.h>
#include <sys/types.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 "broadcast.h"
#include "einfo.h" #include "einfo.h"

View File

@ -17,11 +17,10 @@
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <stdlib.h> #include <stddef.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <unistd.h>
#include "einfo.h" #include "einfo.h"
#include "sysvinit.h" #include "sysvinit.h"