mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	ast_channel opaquification of pointers and integral types
Review: https://reviewboard.asterisk.org/r/1753/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@356042 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -165,7 +165,7 @@ static int find_matching_endwhile(struct ast_channel *chan) | ||||
| 		if (!ast_rdlock_context(c)) { | ||||
| 			if (!strcmp(ast_get_context_name(c), ast_channel_context(chan))) { | ||||
| 				/* This is the matching context we want */ | ||||
| 				int cur_priority = chan->priority + 1, level=1; | ||||
| 				int cur_priority = ast_channel_priority(chan) + 1, level=1; | ||||
|  | ||||
| 				for (e = find_matching_priority(c, ast_channel_exten(chan), cur_priority, | ||||
| 					S_COR(chan->caller.id.number.valid, chan->caller.id.number.str, NULL)); | ||||
| @@ -238,7 +238,7 @@ static int _while_exec(struct ast_channel *chan, const char *data, int end) | ||||
| 	size = strlen(ast_channel_context(chan)) + strlen(ast_channel_exten(chan)) + 32; | ||||
| 	my_name = alloca(size); | ||||
| 	memset(my_name, 0, size); | ||||
| 	snprintf(my_name, size, "%s_%s_%d", ast_channel_context(chan), ast_channel_exten(chan), chan->priority); | ||||
| 	snprintf(my_name, size, "%s_%s_%d", ast_channel_context(chan), ast_channel_exten(chan), ast_channel_priority(chan)); | ||||
| 	 | ||||
| 	ast_channel_lock(chan); | ||||
| 	if (end) { | ||||
| @@ -269,9 +269,9 @@ static int _while_exec(struct ast_channel *chan, const char *data, int end) | ||||
| 			int pri = find_matching_endwhile(chan); | ||||
| 			if (pri > 0) { | ||||
| 				ast_verb(3, "Jumping to priority %d\n", pri); | ||||
| 				chan->priority = pri; | ||||
| 				ast_channel_priority_set(chan, pri); | ||||
| 			} else { | ||||
| 				ast_log(LOG_WARNING, "Couldn't find matching EndWhile? (While at %s@%s priority %d)\n", ast_channel_context(chan), ast_channel_exten(chan), chan->priority); | ||||
| 				ast_log(LOG_WARNING, "Couldn't find matching EndWhile? (While at %s@%s priority %d)\n", ast_channel_context(chan), ast_channel_exten(chan), ast_channel_priority(chan)); | ||||
| 			} | ||||
| 		} | ||||
| 		ast_channel_unlock(chan); | ||||
| @@ -283,7 +283,7 @@ static int _while_exec(struct ast_channel *chan, const char *data, int end) | ||||
| 		size = strlen(ast_channel_context(chan)) + strlen(ast_channel_exten(chan)) + 32; | ||||
| 		goto_str = alloca(size); | ||||
| 		memset(goto_str, 0, size); | ||||
| 		snprintf(goto_str, size, "%s,%s,%d", ast_channel_context(chan), ast_channel_exten(chan), chan->priority); | ||||
| 		snprintf(goto_str, size, "%s,%s,%d", ast_channel_context(chan), ast_channel_exten(chan), ast_channel_priority(chan)); | ||||
| 		pbx_builtin_setvar_helper(chan, varname, goto_str); | ||||
| 	} | ||||
|  | ||||
| @@ -295,7 +295,7 @@ static int _while_exec(struct ast_channel *chan, const char *data, int end) | ||||
| 			size = strlen(ast_channel_context(chan)) + strlen(ast_channel_exten(chan)) + 32; | ||||
| 			goto_str = alloca(size); | ||||
| 			memset(goto_str, 0, size); | ||||
| 			snprintf(goto_str, size, "%s,%s,%d", ast_channel_context(chan), ast_channel_exten(chan), chan->priority+1); | ||||
| 			snprintf(goto_str, size, "%s,%s,%d", ast_channel_context(chan), ast_channel_exten(chan), ast_channel_priority(chan)+1); | ||||
| 			pbx_builtin_setvar_helper(chan, end_varname, goto_str); | ||||
| 		} | ||||
| 		ast_parseable_goto(chan, while_pri); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user