[Asterisk-cvs] asterisk/res res_agi.c,1.2,1.3 res_features.c,1.8,1.9 res_musiconhold.c,1.36,1.37

markster at lists.digium.com markster at lists.digium.com
Sun Aug 8 13:29:03 CDT 2004


Update of /usr/cvsroot/asterisk/res
In directory localhost.localdomain:/tmp/cvs-serv18773/res

Modified Files:
	res_agi.c res_features.c res_musiconhold.c 
Log Message:
Merge BSD stack size work (bug #2067)


Index: res_agi.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_agi.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- res_agi.c	17 Jul 2004 20:25:39 -0000	1.2
+++ res_agi.c	8 Aug 2004 17:15:02 -0000	1.3
@@ -1160,7 +1160,7 @@
 	return 0;
 }
 
-static int agi_register(agi_command *agi)
+int agi_register(agi_command *agi)
 {
 	int x;
 	for (x=0;x<MAX_COMMANDS - 1;x++) {
@@ -1179,7 +1179,7 @@
 	return -1;
 }
 
-static void agi_unregister(agi_command *agi)
+void agi_unregister(agi_command *agi)
 {
 	int x;
 	for (x=0;x<MAX_COMMANDS - 1;x++) {

Index: res_features.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_features.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- res_features.c	6 Aug 2004 14:43:25 -0000	1.8
+++ res_features.c	8 Aug 2004 17:15:02 -0000	1.9
@@ -864,7 +864,7 @@
 		}
 	}
 	ast_add_extension2(con, 1, ast_parking_ext(), 1, NULL, parkcall, strdup(""),free, registrar);
-	pthread_create(&parking_thread, NULL, do_parking_thread, NULL);
+	ast_pthread_create(&parking_thread, NULL, do_parking_thread, NULL);
 	res = ast_register_application(parkedcall, park_exec, synopsis, descrip);
 	if (!res)
 		res = ast_register_application(parkcall, park_call_exec, synopsis2, descrip2);

Index: res_musiconhold.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_musiconhold.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- res_musiconhold.c	17 Jul 2004 20:12:28 -0000	1.36
+++ res_musiconhold.c	8 Aug 2004 17:15:02 -0000	1.37
@@ -548,7 +548,7 @@
 #else
 		moh->pseudofd = -1;
 #endif
-		if (pthread_create(&moh->thread, NULL, monmp3thread, moh)) {
+		if (ast_pthread_create(&moh->thread, NULL, monmp3thread, moh)) {
 			ast_log(LOG_WARNING, "Unable to create moh...\n");
 			if (moh->pseudofd > -1)
 				close(moh->pseudofd);




More information about the svn-commits mailing list