mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-04 13:57:31 -07:00
Fix compiler warnings.
gcc (GCC) 4.2.4 has problems casting away constness. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@370275 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
+3
-4
@@ -499,11 +499,10 @@ struct ast_channel *ast_cel_fabricate_channel_from_event(const struct ast_event
|
||||
return NULL;
|
||||
}
|
||||
|
||||
tchan->appl = app_data;
|
||||
tchan->data = app_data + strlen(record.application_name) + 1;
|
||||
tchan->appl = strcpy(app_data, record.application_name);
|
||||
tchan->data = strcpy(app_data + strlen(record.application_name) + 1,
|
||||
record.application_data);
|
||||
|
||||
strcpy((char *) tchan->appl, record.application_name);
|
||||
strcpy((char *) tchan->data, record.application_data);
|
||||
datastore->data = app_data;
|
||||
ast_channel_datastore_add(tchan, datastore);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user