aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sh/getenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sh/getenv.c')
-rw-r--r--lib/sh/getenv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sh/getenv.c b/lib/sh/getenv.c
index 028afb1..a7dfb18 100644
--- a/lib/sh/getenv.c
+++ b/lib/sh/getenv.c
@@ -115,7 +115,7 @@ putenv (str)
return -1;
}
- offset = assignment (str);
+ offset = assignment (str, 0);
if (str[offset] != '=')
{
errno = EINVAL;
@@ -169,7 +169,7 @@ setenv (name, value, rewrite)
}
var = 0;
- v = value;
+ v = (char *)value; /* some compilers need explicit cast */
/* XXX - should we worry about readonly here? */
if (rewrite == 0)
var = find_variable (name);