aboutsummaryrefslogtreecommitdiff
path: root/src/openrc/rc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/openrc/rc.c')
-rw-r--r--src/openrc/rc.c17
1 files changed, 6 insertions, 11 deletions
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;