diff options
author | Roy Marples <roy@marples.name> | 2007-12-20 15:02:04 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-12-20 15:02:04 +0000 |
commit | c474b810af3a04659be23a745535d612d9f6db4d (patch) | |
tree | 71bb64c7f8afbe583b8758cf4fdca56e2c6cafe1 /src/runscript.c | |
parent | 6b37d16a2250e80808ec0b6efa9aa4afeb46a6c3 (diff) |
Constant data and pointers
Diffstat (limited to 'src/runscript.c')
-rw-r--r-- | src/runscript.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/runscript.c b/src/runscript.c index 5c4a2a5e..aed254d3 100644 --- a/src/runscript.c +++ b/src/runscript.c @@ -99,13 +99,13 @@ static int master_tty = -1; extern char **environ; -static const char *types_b[] = { "broken", NULL }; -static const char *types_n[] = { "ineed", NULL }; -static const char *types_nu[] = { "ineed", "iuse", NULL }; -static const char *types_nua[] = { "ineed", "iuse", "iafter", NULL }; +static const char *const types_b[] = { "broken", NULL }; +static const char *const types_n[] = { "ineed", NULL }; +static const char *const types_nu[] = { "ineed", "iuse", NULL }; +static const char *const types_nua[] = { "ineed", "iuse", "iafter", NULL }; -static const char *types_m[] = { "needsme", NULL }; -static const char *types_mua[] = { "needsme", "usesme", "beforeme", NULL }; +static const char *const types_m[] = { "needsme", NULL }; +static const char *const types_mua[] = { "needsme", "usesme", "beforeme", NULL }; #ifdef __linux__ static void (*selinux_run_init_old) (void); @@ -637,7 +637,7 @@ static void svc_start (bool deps) int i; int j; int depoptions = RC_DEP_TRACE; - const char *svcl[] = { applet, NULL }; + const char *const svcl[] = { applet, NULL }; rc_service_state_t state; state = rc_service_state (service); @@ -846,7 +846,7 @@ static void svc_start (bool deps) static void svc_stop (bool deps) { bool stopped; - const char *svcl[] = { applet, NULL }; + const char *const svcl[] = { applet, NULL }; rc_service_state_t state = rc_service_state (service); |