summaryrefslogtreecommitdiff
path: root/src/rc-status.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-10-15 14:40:53 +0000
committerRoy Marples <roy@marples.name>2007-10-15 14:40:53 +0000
commit5d215f9d63b718eefff69ad20648fb3d66b15c25 (patch)
tree7402c207a87f290d9b81966102ca751f25b5758a /src/rc-status.c
parentc7f679e97e83de461c8f2de320b6b120bdecc50a (diff)
downloadopenrc-5d215f9d63b718eefff69ad20648fb3d66b15c25.tar.gz
openrc-5d215f9d63b718eefff69ad20648fb3d66b15c25.tar.bz2
openrc-5d215f9d63b718eefff69ad20648fb3d66b15c25.tar.xz
const correctness
Diffstat (limited to 'src/rc-status.c')
-rw-r--r--src/rc-status.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rc-status.c b/src/rc-status.c
index cb62e7c..324177c 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;