[asterisk-commits] branch oej/sipregister r34785 - /team/oej/sipregister/build_tools/menuselect.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Jun 19 02:35:53 MST 2006


Author: oej
Date: Mon Jun 19 04:35:52 2006
New Revision: 34785

URL: http://svn.digium.com/view/asterisk?rev=34785&view=rev
Log:
Possibly bad patch to make menuselect compile on OS/x

Modified:
    team/oej/sipregister/build_tools/menuselect.c

Modified: team/oej/sipregister/build_tools/menuselect.c
URL: http://svn.digium.com/view/asterisk/team/oej/sipregister/build_tools/menuselect.c?rev=34785&r1=34784&r2=34785&view=diff
==============================================================================
--- team/oej/sipregister/build_tools/menuselect.c (original)
+++ team/oej/sipregister/build_tools/menuselect.c Mon Jun 19 04:35:52 2006
@@ -35,6 +35,7 @@
 #include "menuselect.h"
 
 #include "asterisk/linkedlists.h"
+#include "asterisk/utils.h"
 
 #undef MENUSELECT_DEBUG
 
@@ -516,7 +517,7 @@
 			had_changes = 1;
 
 			if (mem->remove_on_change) {
-				for (buf = strdupa(mem->remove_on_change), file = strsep(&buf, " ");
+				for (buf = ast_strdupa(mem->remove_on_change), file = strsep(&buf, " ");
 				     file;
 				     file = strsep(&buf, " "))
 					unlink(file);
@@ -524,7 +525,7 @@
 		}
 
 		if (cat->remove_on_change && had_changes) {
-			for (buf = strdupa(cat->remove_on_change), file = strsep(&buf, " ");
+			for (buf = ast_strdupa(cat->remove_on_change), file = strsep(&buf, " ");
 			     file;
 			     file = strsep(&buf, " "))
 				unlink(file);



More information about the asterisk-commits mailing list