aboutsummaryrefslogtreecommitdiff
path: root/src/runscript.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/runscript.c')
-rw-r--r--src/runscript.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/runscript.c b/src/runscript.c
index ee32253a..98b26889 100644
--- a/src/runscript.c
+++ b/src/runscript.c
@@ -29,8 +29,8 @@
#include "rc-plugin.h"
#include "strlist.h"
-#define RCSCRIPT_HELP RC_LIBDIR "/sh/rc-help.sh"
-#define SELINUX_LIB RC_LIBDIR "/runscript_selinux.so"
+#define RCSCRIPT_HELP RC_LIBDIR "/sh/rc-help.sh"
+#define SELINUX_LIB RC_LIBDIR "/runscript_selinux.so"
static char *applet = NULL;
static char *exclusive = NULL;
@@ -427,7 +427,7 @@ static void svc_start (const char *service, bool deps)
if (rc_is_env ("IN_HOTPLUG", "1") || in_background) {
if (! rc_service_state (service, rc_service_inactive) &&
- ! rc_service_state (service, rc_service_stopped))
+ ! rc_service_state (service, rc_service_stopped))
exit (EXIT_FAILURE);
background = true;
}
@@ -634,7 +634,7 @@ static void svc_stop (const char *service, bool deps)
if (rc_is_env ("IN_HOTPLUG", "1") || in_background)
if (! rc_service_state (service, rc_service_started) &&
- ! rc_service_state (service, rc_service_inactive))
+ ! rc_service_state (service, rc_service_inactive))
exit (EXIT_FAILURE);
if (rc_service_state (service, rc_service_stopped))
@@ -819,14 +819,14 @@ int main (int argc, char **argv)
char c;
static struct option longopts[] = {
- { "debug", 0, NULL, 'd'},
- { "help", 0, NULL, 'h'},
- { "nocolor", 0, NULL, 'C'},
- { "nocolour", 0, NULL, 'C'},
- { "nodeps", 0, NULL, 'D'},
- { "quiet", 0, NULL, 'q'},
- { "verbose", 0, NULL, 'v'},
- { NULL, 0, NULL, 0}
+ { "debug", 0, NULL, 'd'},
+ { "help", 0, NULL, 'h'},
+ { "nocolor", 0, NULL, 'C'},
+ { "nocolour", 0, NULL, 'C'},
+ { "nodeps", 0, NULL, 'D'},
+ { "quiet", 0, NULL, 'q'},
+ { "verbose", 0, NULL, 'v'},
+ { NULL, 0, NULL, 0}
};
/* Show help if insufficient args */