mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	Remove unused RAII_VAR() declarations.
* Remove unused RAII_VAR() declarations. The compiler cannot catch these because the cleanup function "references" the unused variable. Some actually allocated and released resources that were never used. * Fixed some whitespace issues in stasis_bridges.c. ........ Merged revisions 412399 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@412400 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -716,7 +716,6 @@ static struct ast_manager_event_blob *varset_to_ami(struct stasis_message *msg) | ||||
| static struct ast_manager_event_blob *agent_login_to_ami(struct stasis_message *msg) | ||||
| { | ||||
| 	RAII_VAR(struct ast_str *, channel_string, NULL, ast_free); | ||||
| 	RAII_VAR(struct ast_str *, party_string, ast_str_create(256), ast_free); | ||||
| 	struct ast_channel_blob *obj = stasis_message_data(msg); | ||||
| 	const char *agent = ast_json_string_get(ast_json_object_get(obj->blob, "agent")); | ||||
|  | ||||
| @@ -734,7 +733,6 @@ static struct ast_manager_event_blob *agent_login_to_ami(struct stasis_message * | ||||
| static struct ast_manager_event_blob *agent_logoff_to_ami(struct stasis_message *msg) | ||||
| { | ||||
| 	RAII_VAR(struct ast_str *, channel_string, NULL, ast_free); | ||||
| 	RAII_VAR(struct ast_str *, party_string, ast_str_create(256), ast_free); | ||||
| 	struct ast_channel_blob *obj = stasis_message_data(msg); | ||||
| 	const char *agent = ast_json_string_get(ast_json_object_get(obj->blob, "agent")); | ||||
| 	long logintime = ast_json_integer_get(ast_json_object_get(obj->blob, "logintime")); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user