[asterisk-commits] rmudgett: branch certified-1.8.15 r375631 - in /certified/branches/1.8.15: ./...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Nov 2 13:59:11 CDT 2012


Author: rmudgett
Date: Fri Nov  2 13:59:07 2012
New Revision: 375631

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=375631
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.15/   (props changed)
    certified/branches/1.8.15/main/cel.c

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

Modified: certified/branches/1.8.15/main/cel.c
URL: http://svnview.digium.com/svn/asterisk/certified/branches/1.8.15/main/cel.c?view=diff&rev=375631&r1=375630&r2=375631
==============================================================================
--- certified/branches/1.8.15/main/cel.c (original)
+++ certified/branches/1.8.15/main/cel.c Fri Nov  2 13:59:07 2012
@@ -499,11 +499,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