summaryrefslogtreecommitdiffstats
path: root/cmd-string.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-05-15 12:58:56 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-05-15 12:58:56 +0000
commit92de1ad6c833ec8253e07be2a10689b7f5f2c9a6 (patch)
treed84fda1b5905145568fcf0acc32bcae24c5f93c7 /cmd-string.c
parent0b54a2d72374ec3ad73f7b2c8b666f8ec2411f54 (diff)
putenv can be char *.
Diffstat (limited to 'cmd-string.c')
-rw-r--r--cmd-string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-string.c b/cmd-string.c
index dbd431b1..e05e2799 100644
--- a/cmd-string.c
+++ b/cmd-string.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-string.c,v 1.14 2009-05-04 19:12:37 nicm Exp $ */
+/* $Id: cmd-string.c,v 1.15 2009-05-15 12:58:56 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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);
}