[asterisk-commits] tilghman: trunk r137456 - /trunk/main/channel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Aug 13 12:36:16 CDT 2008


Author: tilghman
Date: Wed Aug 13 12:36:15 2008
New Revision: 137456

URL: http://svn.digium.com/view/asterisk?view=rev&rev=137456
Log:
Convert deprecated routines to the new names.
(closes issue #13297)
 Reported by: snuffy
 Patches: 
       bug13297_20080814.diff uploaded by snuffy (license 35)

Modified:
    trunk/main/channel.c

Modified: trunk/main/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/main/channel.c?view=diff&rev=137456&r1=137455&r2=137456
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Wed Aug 13 12:36:15 2008
@@ -429,12 +429,12 @@
 	struct ast_datastore *store = ast_channel_datastore_find(chan, &ast_chan_trace_datastore_info, NULL);
 	struct ast_chan_trace_data *traced;
 	if (!store) {
-		store = ast_channel_datastore_alloc(&ast_chan_trace_datastore_info, "ChanTrace");
+		store = ast_datastore_alloc(&ast_chan_trace_datastore_info, "ChanTrace");
 		if (!store) 
 			return -1;
 		traced = ast_calloc(1, sizeof(*traced));
 		if (!traced) {
-			ast_channel_datastore_free(store);
+			ast_datastore_free(store);
 			return -1;
 		}	
 		store->data = traced;




More information about the asterisk-commits mailing list