summaryrefslogtreecommitdiffstats
path: root/lib/libstand/environment.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2000-08-03 09:08:29 +0000
committerjhb <jhb@FreeBSD.org>2000-08-03 09:08:29 +0000
commit04f2dc8e0bc028215d67716bd57720b48e9867ff (patch)
tree5027dd91afd5ed090350e7ef3103dc38d8f9a1ca /lib/libstand/environment.c
parentea5b5bab77fc7b8bea8fa349155989859d483300 (diff)
downloadFreeBSD-src-04f2dc8e0bc028215d67716bd57720b48e9867ff.zip
FreeBSD-src-04f2dc8e0bc028215d67716bd57720b48e9867ff.tar.gz
Cleanup warnings by adding missint prototypes, removing unneeded duplicate
prototypes, and adding in several 'const's. Also, add some missing $FreeBSD$'s. Found by: BDECFLAGS
Diffstat (limited to 'lib/libstand/environment.c')
-rw-r--r--lib/libstand/environment.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libstand/environment.c b/lib/libstand/environment.c
index f2ca120..158e845 100644
--- a/lib/libstand/environment.c
+++ b/lib/libstand/environment.c
@@ -64,8 +64,8 @@ env_getenv(const char *name)
* If (value) is NULL, the variable is set but has no value.
*/
int
-env_setenv(const char *name, int flags, void *value, ev_sethook_t sethook,
- ev_unsethook_t unsethook)
+env_setenv(const char *name, int flags, const void *value,
+ ev_sethook_t sethook, ev_unsethook_t unsethook)
{
struct env_var *ev, *curr, *last;
@@ -150,7 +150,7 @@ getenv(const char *name)
}
int
-setenv(const char *name, char *value, int overwrite)
+setenv(const char *name, const char *value, int overwrite)
{
/* No guarantees about state, always assume volatile */
if (overwrite || (env_getenv(name) == NULL))
OpenPOWER on IntegriCloud