aboutsummaryrefslogtreecommitdiff
path: root/src/rc/rc-misc.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-18 14:01:48 +0000
committerRoy Marples <roy@marples.name>2008-01-18 14:01:48 +0000
commit773c2b9ca6c41626bf39ba1af914b5622d520fb8 (patch)
tree4a9f35fa42b4901cca915ad7cf62370018972863 /src/rc/rc-misc.c
parent87f785cc31da9e30cc0fb631b035e3fd25161e89 (diff)
We should never change the list passed to rc_config_value.
Diffstat (limited to 'src/rc/rc-misc.c')
-rw-r--r--src/rc/rc-misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rc/rc-misc.c b/src/rc/rc-misc.c
index 56db3ff0..02d30c54 100644
--- a/src/rc/rc-misc.c
+++ b/src/rc/rc-misc.c
@@ -89,7 +89,7 @@ char *rc_conf_value (const char *setting)
}
}
- return (rc_config_value (rc_conf, setting));
+ return (rc_config_value ((const char *const *)rc_conf, setting));
}
bool rc_conf_yesno (const char *setting)
@@ -176,7 +176,7 @@ char **env_filter (void)
env_len = strlen (env_name) + strlen ("export ") + 1;
p = xmalloc (sizeof (char) * env_len);
snprintf (p, env_len, "export %s", env_name);
- env_var = rc_config_value (profile, p);
+ env_var = rc_config_value ((const char *const *) profile, p);
free (p);
}