mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
Fix compiler warnings.
gcc (GCC) 4.2.4 has problems casting away constness. ........ Merged revisions 370275 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 370277 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@370298 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -505,11 +505,10 @@ struct ast_channel *ast_cel_fabricate_channel_from_event(const struct ast_event
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ast_channel_appl_set(tchan, app_data);
|
||||
ast_channel_data_set(tchan, app_data + strlen(record.application_name) + 1);
|
||||
ast_channel_appl_set(tchan, strcpy(app_data, record.application_name));
|
||||
ast_channel_data_set(tchan, strcpy(app_data + strlen(record.application_name) + 1,
|
||||
record.application_data));
|
||||
|
||||
strcpy((char *) ast_channel_appl(tchan), record.application_name);
|
||||
strcpy((char *) ast_channel_data(tchan), record.application_data);
|
||||
datastore->data = app_data;
|
||||
ast_channel_datastore_add(tchan, datastore);
|
||||
|
||||
|
Reference in New Issue
Block a user