From: Russell Bryant Date: Sun, 19 Mar 2006 21:28:55 +0000 (+0000) Subject: fix the return value for the provided unsetenv() for Solaris X-Git-Tag: 1.4.0-beta1~2390 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c82ac2e7aa76da6c47346215aced3f6d94c8441;p=thirdparty%2Fasterisk.git 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 --- diff --git a/include/solaris-compat/compat.h b/include/solaris-compat/compat.h index b34cf11f48..a40ce4f1d6 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 38615ac5d0..8c9916d23b 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); }