summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2014-04-15 18:01:47 +0000
committerRichard Mudgett <rmudgett@digium.com>2014-04-15 18:01:47 +0000
commit45ade68cb48baad5f4f994fae6fe52211f379f70 (patch)
tree618aa6b37ae7714daa6090c4e7f2a9bc8ded1c0d /channels
parentd28af99e65c79f5bb1d336218f37de32313181db (diff)
Remove unused RAII_VAR() declarations.
* Remove unused RAII_VAR() declarations. The compiler cannot catch these because the cleanup function "references" the unused variable. Some actually allocated and released resources that were never used. * Fixed some whitespace issues in stasis_bridges.c. ........ Merged revisions 412399 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@412400 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_oss.c1
-rw-r--r--channels/chan_skinny.c2
2 files changed, 0 insertions, 3 deletions
diff --git a/channels/chan_oss.c b/channels/chan_oss.c
index e5300ef82..7fc4f4052 100644
--- a/channels/chan_oss.c
+++ b/channels/chan_oss.c
@@ -1175,7 +1175,6 @@ static char *console_mute(struct ast_cli_entry *e, int cmd, struct ast_cli_args
static char *console_transfer(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
{
struct chan_oss_pvt *o = find_desc(oss_active);
- RAII_VAR(struct ast_channel *, b, NULL, ast_channel_cleanup);
char *tmp, *ext, *ctx;
switch (cmd) {
diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c
index cf0b07209..8ed469ebe 100644
--- a/channels/chan_skinny.c
+++ b/channels/chan_skinny.c
@@ -7202,8 +7202,6 @@ static int handle_soft_key_event_message(struct skinny_req *req, struct skinnyse
}
if ((sub && sub->owner) && (ast_channel_state(sub->owner) == AST_STATE_UP)) {
- RAII_VAR(struct ast_channel *, bridged, NULL, ast_channel_cleanup);
-
c = sub->owner;
ast_channel_lock(c);
bridge_channel = ast_channel_get_bridge_channel(c);