[asterisk-commits] rmudgett: trunk r393066 - /trunk/main/bridging.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jun 27 16:01:05 CDT 2013
Author: rmudgett
Date: Thu Jun 27 16:01:04 2013
New Revision: 393066
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=393066
Log:
Change the name of some local variables in bridging.c to reflect what they really mean.
Modified:
trunk/main/bridging.c
Modified: trunk/main/bridging.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/bridging.c?view=diff&rev=393066&r1=393065&r2=393066
==============================================================================
--- trunk/main/bridging.c (original)
+++ trunk/main/bridging.c Thu Jun 27 16:01:04 2013
@@ -772,10 +772,10 @@
/* Run any hangup hooks. */
iter = ao2_iterator_init(features->hangup_hooks, 0);
for (; (hook = ao2_iterator_next(&iter)); ao2_ref(hook, -1)) {
- int failed;
-
- failed = hook->callback(bridge_channel->bridge, bridge_channel, hook->hook_pvt);
- if (failed) {
+ int remove_me;
+
+ remove_me = hook->callback(bridge_channel->bridge, bridge_channel, hook->hook_pvt);
+ if (remove_me) {
ast_debug(1, "Hangup hook %p is being removed from %p(%s)\n",
hook, bridge_channel, ast_channel_name(bridge_channel->chan));
ao2_unlink(features->hangup_hooks, hook);
@@ -2486,10 +2486,10 @@
/* If a hook was actually matched execute it on this channel, otherwise stream up the DTMF to the other channels */
if (hook) {
- int failed;
-
- failed = hook->callback(bridge_channel->bridge, bridge_channel, hook->hook_pvt);
- if (failed) {
+ int remove_me;
+
+ remove_me = hook->callback(bridge_channel->bridge, bridge_channel, hook->hook_pvt);
+ if (remove_me) {
ast_debug(1, "DTMF hook %p is being removed from %p(%s)\n",
hook, bridge_channel, ast_channel_name(bridge_channel->chan));
ao2_unlink(features->dtmf_hooks, hook);
More information about the asterisk-commits
mailing list