From c41a1cb7d8162094bec6f41e9a82900be1419b0f Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Wed, 24 Nov 2004 22:34:15 +0000 Subject: 2004-11-24 Jeff Johnston * libc/include/stdlib.h (putenv, _putenv_r): Change to remove const for value string parameter. * libc/stdlib/putenv.c: Ditto. * libc/stdlib/putenv_r.c: Ditto. --- newlib/libc/include/stdlib.h | 4 ++-- newlib/libc/stdlib/putenv.c | 2 +- newlib/libc/stdlib/putenv_r.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'newlib/libc') diff --git a/newlib/libc/include/stdlib.h b/newlib/libc/include/stdlib.h index 9354b1ea2..e75558d27 100644 --- a/newlib/libc/include/stdlib.h +++ b/newlib/libc/include/stdlib.h @@ -129,8 +129,8 @@ char * _EXFUN(l64a,(long __input)); char * _EXFUN(_l64a_r,(struct _reent *,long __input)); int _EXFUN(on_exit,(_VOID (*__func)(int, _PTR),_PTR __arg)); _VOID _EXFUN(_Exit,(int __status) _ATTRIBUTE ((noreturn))); -int _EXFUN(putenv,(const char *__string)); -int _EXFUN(_putenv_r,(struct _reent *, const char *__string)); +int _EXFUN(putenv,(char *__string)); +int _EXFUN(_putenv_r,(struct _reent *, char *__string)); int _EXFUN(setenv,(const char *__string, const char *__value, int __overwrite)); int _EXFUN(_setenv_r,(struct _reent *, const char *__string, const char *__value, int __overwrite)); diff --git a/newlib/libc/stdlib/putenv.c b/newlib/libc/stdlib/putenv.c index 8ee67d7d5..978f7c5d6 100644 --- a/newlib/libc/stdlib/putenv.c +++ b/newlib/libc/stdlib/putenv.c @@ -24,7 +24,7 @@ int _DEFUN (putenv, (str), - _CONST char *str) + char *str) { return _putenv_r (_REENT, str); } diff --git a/newlib/libc/stdlib/putenv_r.c b/newlib/libc/stdlib/putenv_r.c index a03f3b007..9ba626025 100644 --- a/newlib/libc/stdlib/putenv_r.c +++ b/newlib/libc/stdlib/putenv_r.c @@ -33,7 +33,7 @@ int _DEFUN (_putenv_r, (reent_ptr, str), struct _reent *reent_ptr _AND - _CONST char *str) + char *str) { register char *p, *equal; int rval; -- cgit v1.2.3