[asterisk-commits] trunk r13629 - in /trunk:
include/solaris-compat/compat.h strcompat.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sun Mar 19 14:28:57 MST 2006
Author: russell
Date: Sun Mar 19 15:28:55 2006
New Revision: 13629
URL: http://svn.digium.com/view/asterisk?rev=13629&view=rev
Log:
fix the return value for the provided unsetenv() for Solaris
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=13629&r1=13628&r2=13629&view=diff
==============================================================================
--- trunk/include/solaris-compat/compat.h (original)
+++ trunk/include/solaris-compat/compat.h Sun Mar 19 15:28:55 2006
@@ -42,5 +42,5 @@
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
Modified: trunk/strcompat.c
URL: http://svn.digium.com/view/asterisk/trunk/strcompat.c?rev=13629&r1=13628&r2=13629&view=diff
==============================================================================
--- trunk/strcompat.c (original)
+++ trunk/strcompat.c Sun Mar 19 15:28:55 2006
@@ -50,8 +50,8 @@
return ret;
}
-int unsetenv(const char *name)
+void unsetenv(const char *name)
{
- setenv(name,"",0);
+ setenv(name, "", 0);
}
More information about the asterisk-commits
mailing list