aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/openrc/rc-logger.c10
-rw-r--r--src/openrc/rc.c17
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;