summaryrefslogtreecommitdiffstats
path: root/cmd-string.c
authornicm <nicm>2009-05-15 12:58:56 (GMT)
committer nicm <nicm>2009-05-15 12:58:56 (GMT)
commit46f9011c581b398f1e53e316b9246d05e0a3be58 (patch) (side-by-side diff)
tree502cfab4296d27aca5ce23b6821365fdf9bc7a2e /cmd-string.c
parentc920e178f809899f3538518bc2890a8cf490e6f4 (diff)
downloadtmux-old-46f9011c581b398f1e53e316b9246d05e0a3be58.zip
tmux-old-46f9011c581b398f1e53e316b9246d05e0a3be58.tar.gz
tmux-old-46f9011c581b398f1e53e316b9246d05e0a3be58.tar.bz2
putenv can be char *.
Diffstat (limited to 'cmd-string.c') (more/less context) (ignore whitespace changes)
-rw-r--r--cmd-string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-string.c b/cmd-string.c
index bdf3c7f..84ae2da 100644
--- a/cmd-string.c
+++ b/cmd-string.c
@@ -63,7 +63,7 @@ cmd_string_parse(const char *s, struct cmd_list **cmdlist, char **cause)
if ((t = strchr(s, ' ')) == NULL && (t = strchr(s, '\t')) == NULL)
t = strchr(s, '\0');
if ((u = strchr(s, '=')) != NULL && u < t) {
- if (putenv(s) != 0) {
+ if (putenv((char *) s) != 0) {
xasprintf(cause, "assignment failed: %s", s);
return (-1);
}