diff options
author | Roy Marples <roy@marples.name> | 2007-10-15 14:40:53 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-10-15 14:40:53 +0000 |
commit | 5d215f9d63b718eefff69ad20648fb3d66b15c25 (patch) | |
tree | 7402c207a87f290d9b81966102ca751f25b5758a /src/rc-status.c | |
parent | c7f679e97e83de461c8f2de320b6b120bdecc50a (diff) |
const correctness
Diffstat (limited to 'src/rc-status.c')
-rw-r--r-- | src/rc-status.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; |