[svn-commits] russell: trunk r135439 - /trunk/channels/chan_console.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Aug 4 10:02:13 CDT 2008


Author: russell
Date: Mon Aug  4 10:02:12 2008
New Revision: 135439

URL: http://svn.digium.com/view/asterisk?view=rev&rev=135439
Log:
Be explicit that we don't want a result from this callback.  The callback would
never indicate a match, so nothing would have been returned anyway, but it was
still a poor example of proper usage.

Modified:
    trunk/channels/chan_console.c

Modified: trunk/channels/chan_console.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_console.c?view=diff&rev=135439&r1=135438&r2=135439
==============================================================================
--- trunk/channels/chan_console.c (original)
+++ trunk/channels/chan_console.c Mon Aug  4 10:02:12 2008
@@ -1402,7 +1402,7 @@
 		return -1;
 	}
 	
-	ao2_callback(pvts, 0, pvt_mark_destroy_cb, NULL);
+	ao2_callback(pvts, OBJ_NODATA, pvt_mark_destroy_cb, NULL);
 
 	ast_mutex_lock(&globals_lock);
 	for (v = ast_variable_browse(cfg, "general"); v; v = v->next)




More information about the svn-commits mailing list