From 5d215f9d63b718eefff69ad20648fb3d66b15c25 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 15 Oct 2007 14:40:53 +0000 Subject: const correctness --- src/rc-status.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/rc-status.c') diff --git a/src/rc-status.c b/src/rc-status.c index cb62e7c8..324177c9 100644 --- a/src/rc-status.c +++ b/src/rc-status.c @@ -19,7 +19,7 @@ #define APPLET "rc-status" -static char const *types[] = { "ineed", "iuse", "iafter", NULL }; +static const char *types_nua[] = { "ineed", "iuse", "iafter", NULL }; static void print_level (char *level) { @@ -146,7 +146,8 @@ int rc_status (int argc, char **argv) print_level (level); services = rc_services_in_runlevel (level); if (deptree) { - ordered = rc_deptree_depends (deptree, (char **) types, services, + ordered = rc_deptree_depends (deptree, types_nua, + (const char **) services, level, depopts); rc_strlist_free (services); services = ordered; -- cgit v1.2.3