diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-19 21:28:55 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-19 21:28:55 +0000 |
commit | 63e2848d646d4882377443ba32a0803b390ccec4 (patch) | |
tree | 915da7f4ff3403059a9a6d0d811988c9ec023495 | |
parent | b35095d70b5c743206eb98056d003cb0135560a7 (diff) |
fix the return value for the provided unsetenv() for Solaris
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@13629 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 b34cf11f4..a40ce4f1d 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); -int unsetenv(const char *name); +void unsetenv(const char *name); #endif diff --git a/strcompat.c b/strcompat.c index 38615ac5d..8c9916d23 100644 --- a/strcompat.c +++ b/strcompat.c @@ -50,8 +50,8 @@ int setenv(const char *name, const char *value, int overwrite) return ret; } -int unsetenv(const char *name) +void unsetenv(const char *name) { - setenv(name,"",0); + setenv(name, "", 0); } |