[asterisk-commits] rmudgett: branch certified-1.8.11 r374832 - in /certified/branches/1.8.11: ./...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Oct 10 16:31:39 CDT 2012


Author: rmudgett
Date: Wed Oct 10 16:31:35 2012
New Revision: 374832

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=374832
Log:
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

Modified:
    certified/branches/1.8.11/   (props changed)
    certified/branches/1.8.11/main/cel.c

Propchange: certified/branches/1.8.11/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: certified/branches/1.8.11/main/cel.c
URL: http://svnview.digium.com/svn/asterisk/certified/branches/1.8.11/main/cel.c?view=diff&rev=374832&r1=374831&r2=374832
==============================================================================
--- certified/branches/1.8.11/main/cel.c (original)
+++ certified/branches/1.8.11/main/cel.c Wed Oct 10 16:31:35 2012
@@ -507,11 +507,10 @@
 		return NULL;
 	}
 
-	tchan->appl = app_data;
-	tchan->data = app_data + strlen(record.application_name) + 1;
-
-	strcpy((char *) tchan->appl, record.application_name);
-	strcpy((char *) tchan->data, record.application_data);
+	tchan->appl = strcpy(app_data, record.application_name);
+	tchan->data = strcpy(app_data + strlen(record.application_name) + 1,
+		record.application_data);
+
 	datastore->data = app_data;
 	ast_channel_datastore_add(tchan, datastore);
 




More information about the asterisk-commits mailing list