diff options
Diffstat (limited to 'src/start-stop-daemon/start-stop-daemon.c')
-rw-r--r-- | src/start-stop-daemon/start-stop-daemon.c | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/src/start-stop-daemon/start-stop-daemon.c b/src/start-stop-daemon/start-stop-daemon.c index 56f85cba..07fab393 100644 --- a/src/start-stop-daemon/start-stop-daemon.c +++ b/src/start-stop-daemon/start-stop-daemon.c @@ -26,47 +26,44 @@ # define _GNU_SOURCE #endif -#include <sys/types.h> -#include <sys/ioctl.h> -#include <sys/resource.h> -#include <sys/stat.h> -#include <termios.h> -#include <sys/time.h> -#include <sys/wait.h> - -#ifdef __linux__ -#include <sys/syscall.h> /* For io priority */ -#include <sys/prctl.h> /* For prctl */ -#endif - -#include <ctype.h> #include <errno.h> #include <fcntl.h> #include <getopt.h> #include <limits.h> #include <grp.h> #include <pwd.h> +#include <sched.h> #include <signal.h> +#include <stdbool.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <sys/ioctl.h> +#include <sys/resource.h> +#include <sys/stat.h> +#include <sys/time.h> +#include <sys/types.h> +#include <sys/wait.h> +#ifdef __linux__ +# include <sys/syscall.h> /* For io priority */ +# include <sys/prctl.h> /* For prctl */ +#endif +#include <termios.h> #include <time.h> #include <unistd.h> #ifdef HAVE_PAM -#include <security/pam_appl.h> +# include <security/pam_appl.h> /* We are not supporting authentication conversations */ static struct pam_conv conv = { NULL, NULL}; #endif #ifdef HAVE_CAP -#include <sys/capability.h> +# include <sys/capability.h> #endif -#include <sched.h> - #include "einfo.h" #include "queue.h" #include "rc.h" |