diff options
author | Sam James <sam@gentoo.org> | 2023-01-29 04:16:33 +0000 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2023-01-29 11:32:22 -0600 |
commit | fb6ffc5713a944c878581c5f09f626c6493d81c1 (patch) | |
tree | 5e1678b06486724a04c4ba757de7eb2e4eba64cb /src/openrc | |
parent | 01acbe3c271c1e84370569af24119de140ea9831 (diff) |
openrc: missing includes from IWYU
Diffstat (limited to 'src/openrc')
-rw-r--r-- | src/openrc/rc-logger.c | 10 | ||||
-rw-r--r-- | src/openrc/rc.c | 17 |
2 files changed, 11 insertions, 16 deletions
diff --git a/src/openrc/rc-logger.c b/src/openrc/rc-logger.c index b00550a7..974147f9 100644 --- a/src/openrc/rc-logger.c +++ b/src/openrc/rc-logger.c @@ -16,10 +16,7 @@ * except according to the terms contained in the LICENSE file. */ -#include <sys/types.h> -#include <sys/ioctl.h> -#include <sys/wait.h> - +#include <errno.h> #include <ctype.h> #include <fcntl.h> #include <poll.h> @@ -27,6 +24,9 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/wait.h> #include <termios.h> #include <time.h> #include <unistd.h> @@ -42,9 +42,9 @@ #include "einfo.h" #include "rc-logger.h" -#include "queue.h" #include "rc.h" #include "misc.h" +#include "helpers.h" #define TMPLOG RC_SVCDIR "/rc.log" #define DEFAULTLOG "/var/log/rc.log" diff --git a/src/openrc/rc.c b/src/openrc/rc.c index 55e85078..aaf1043e 100644 --- a/src/openrc/rc.c +++ b/src/openrc/rc.c @@ -20,26 +20,21 @@ * except according to the terms contained in the LICENSE file. */ -#include <sys/types.h> -#include <sys/ioctl.h> -#include <sys/param.h> -#include <sys/stat.h> -#include <sys/utsname.h> -#include <sys/wait.h> - #include <errno.h> #include <dirent.h> -#include <ctype.h> #include <getopt.h> #include <libgen.h> -#include <limits.h> #include <pwd.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <signal.h> #include <string.h> -#include <strings.h> +#include <sys/ioctl.h> +#include <sys/stat.h> +#include <sys/types.h> +#include <sys/utsname.h> +#include <sys/wait.h> #include <termios.h> #include <unistd.h> @@ -49,9 +44,9 @@ #include "rc-logger.h" #include "misc.h" #include "plugin.h" - #include "version.h" #include "_usage.h" +#include "helpers.h" const char *extraopts = NULL; const char getoptstring[] = "a:no:s:S" getoptstring_COMMON; |