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-depend.c | |
parent | c7f679e97e83de461c8f2de320b6b120bdecc50a (diff) |
const correctness
Diffstat (limited to 'src/rc-depend.c')
-rw-r--r-- | src/rc-depend.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rc-depend.c b/src/rc-depend.c index 8a0f1894..190d5c8c 100644 --- a/src/rc-depend.c +++ b/src/rc-depend.c @@ -114,7 +114,8 @@ int rc_depend (int argc, char **argv) list = NULL; rc_strlist_add (&list, argv[optind]); errno = 0; - depends = rc_deptree_depends (deptree, NULL, list, runlevel, 0); + depends = rc_deptree_depends (deptree, NULL, (const char **) list, + runlevel, 0); if (! depends && errno == ENOENT) eerror ("no dependency info for service `%s'", argv[optind]); else @@ -140,7 +141,8 @@ int rc_depend (int argc, char **argv) rc_strlist_add (&types, "iuse"); } - depends = rc_deptree_depends (deptree, types, services, runlevel, options); + depends = rc_deptree_depends (deptree, (const char **) types, + (const char **) services, runlevel, options); if (depends) { STRLIST_FOREACH (depends, service, i) { |