fix the provided unsetenv for solaris to return an int like it's supposed to
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16007 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
0d6061a5c6
commit
d95c9215a8
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue