From c474b810af3a04659be23a745535d612d9f6db4d Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 20 Dec 2007 15:02:04 +0000 Subject: Constant data and pointers --- src/runscript.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/runscript.c') 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); -- cgit v1.2.3