From 04f2dc8e0bc028215d67716bd57720b48e9867ff Mon Sep 17 00:00:00 2001 From: jhb Date: Thu, 3 Aug 2000 09:08:29 +0000 Subject: 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 --- lib/libstand/environment.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libstand/environment.c') 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)) -- cgit v1.1