[asterisk-commits] rmudgett: branch 10 r370277 - in /branches/10: ./ main/cel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 19 17:11:52 CDT 2012


Author: rmudgett
Date: Thu Jul 19 17:11:48 2012
New Revision: 370277

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

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

Modified: branches/10/main/cel.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/main/cel.c?view=diff&rev=370277&r1=370276&r2=370277
==============================================================================
--- branches/10/main/cel.c (original)
+++ branches/10/main/cel.c Thu Jul 19 17:11:48 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