diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-29 04:14:12 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-29 04:14:12 +0000 |
commit | d95c9215a885d71767f75a5349cbaa6de0470791 (patch) | |
tree | 53818308dc8030d0cdfd4212c048a70f5e556866 | |
parent | 0d6061a5c6c5187e00f374d11196d77b6e3383cb (diff) |
fix the provided unsetenv for solaris to return an int like it's supposed to
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16007 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | include/solaris-compat/compat.h | 2 | ||||
-rw-r--r-- | strcompat.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/solaris-compat/compat.h b/include/solaris-compat/compat.h index a40ce4f1d..b34cf11f4 100644 --- a/include/solaris-compat/compat.h +++ b/include/solaris-compat/compat.h @@ -42,5 +42,5 @@ typedef unsigned int u_int32_t; char* strsep(char** str, const char* delims); int setenv(const char *name, const char *value, int overwrite); -void unsetenv(const char *name); +int unsetenv(const char *name); #endif diff --git a/strcompat.c b/strcompat.c index 93a6b0c2b..2efdb03d5 100644 --- a/strcompat.c +++ b/strcompat.c @@ -47,8 +47,8 @@ int setenv(const char *name, const char *value, int overwrite) return putenv(buf); } -void unsetenv(const char *name) +int unsetenv(const char *name) { - setenv(name, "", 0); + return setenv(name, "", 0); } |