mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
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
This commit is contained in:
@@ -42,5 +42,5 @@ typedef unsigned int u_int32_t;
|
|||||||
|
|
||||||
char* strsep(char** str, const char* delims);
|
char* strsep(char** str, const char* delims);
|
||||||
int setenv(const char *name, const char *value, int overwrite);
|
int setenv(const char *name, const char *value, int overwrite);
|
||||||
int unsetenv(const char *name);
|
void unsetenv(const char *name);
|
||||||
#endif
|
#endif
|
||||||
|
@@ -50,7 +50,7 @@ int setenv(const char *name, const char *value, int overwrite)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int unsetenv(const char *name)
|
void unsetenv(const char *name)
|
||||||
{
|
{
|
||||||
setenv(name, "", 0);
|
setenv(name, "", 0);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user