From: Russell Bryant Date: Wed, 29 Mar 2006 04:14:12 +0000 (+0000) Subject: fix the provided unsetenv for solaris to return an int like it's supposed to X-Git-Tag: 1.4.0-beta1~2262 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9b436eecb73b580dda4306caf89afc8c6e93e340;p=thirdparty%2Fasterisk.git fix the provided unsetenv for solaris to return an int like it's supposed to git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16007 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/solaris-compat/compat.h b/include/solaris-compat/compat.h index a40ce4f1d6..b34cf11f48 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 93a6b0c2b4..2efdb03d52 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); }