diff options
author | Russell Bryant <russell@russellbryant.com> | 2006-03-19 21:28:55 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2006-03-19 21:28:55 +0000 |
commit | 4c82ac2e7aa76da6c47346215aced3f6d94c8441 (patch) | |
tree | 915da7f4ff3403059a9a6d0d811988c9ec023495 | |
parent | a3fe92b352e8b7a5a7248a36c6a52004c7f11c46 (diff) |
fix the return value for the provided unsetenv() for Solaris
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13629 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-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); } |