[asterisk-commits] trunk r16007 - in /trunk:
include/solaris-compat/compat.h strcompat.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Mar 28 21:14:14 MST 2006
Author: russell
Date: Tue Mar 28 22:14:12 2006
New Revision: 16007
URL: http://svn.digium.com/view/asterisk?rev=16007&view=rev
Log:
fix the provided unsetenv for solaris to return an int like it's supposed to
Modified:
trunk/include/solaris-compat/compat.h
trunk/strcompat.c
Modified: trunk/include/solaris-compat/compat.h
URL: http://svn.digium.com/view/asterisk/trunk/include/solaris-compat/compat.h?rev=16007&r1=16006&r2=16007&view=diff
==============================================================================
--- trunk/include/solaris-compat/compat.h (original)
+++ trunk/include/solaris-compat/compat.h Tue Mar 28 22:14:12 2006
@@ -42,5 +42,5 @@
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
Modified: trunk/strcompat.c
URL: http://svn.digium.com/view/asterisk/trunk/strcompat.c?rev=16007&r1=16006&r2=16007&view=diff
==============================================================================
--- trunk/strcompat.c (original)
+++ trunk/strcompat.c Tue Mar 28 22:14:12 2006
@@ -47,8 +47,8 @@
return putenv(buf);
}
-void unsetenv(const char *name)
+int unsetenv(const char *name)
{
- setenv(name, "", 0);
+ return setenv(name, "", 0);
}
More information about the asterisk-commits
mailing list