diff options
author | Russell Bryant <russell@russellbryant.com> | 2011-05-05 22:44:52 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2011-05-05 22:44:52 +0000 |
commit | f0f5e237bf96ed5531b164935bbe8dca1c7b70ed (patch) | |
tree | 2b7d632f7f42d434363d7dee71d987562eb56ed9 /channels/chan_iax2.c | |
parent | c28e2d380c185b8cda44b468504bb8a6892714a6 (diff) |
Merged revisions 317474 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
........
r317474 | russell | 2011-05-05 17:36:33 -0500 (Thu, 05 May 2011) | 2 lines
Fix more "set but unused" warnings.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@317475 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_iax2.c')
-rw-r--r-- | channels/chan_iax2.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 0db1f2299..45410f64f 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -6161,7 +6161,6 @@ static int iax2_trunk_queue(struct chan_iax2_pvt *pvt, struct iax_frame *fr) struct iax2_trunk_peer *tpeer; void *tmp, *ptr; struct timeval now; - int res; struct ast_iax2_meta_trunk_entry *met; struct ast_iax2_meta_trunk_mini *mtm; @@ -6217,7 +6216,7 @@ static int iax2_trunk_queue(struct chan_iax2_pvt *pvt, struct iax_frame *fr) /* if we have enough for a full MTU, ship it now without waiting */ if (global_max_trunk_mtu > 0 && tpeer->trunkdatalen + f->datalen + 4 >= global_max_trunk_mtu) { now = ast_tvnow(); - res = send_trunk(tpeer, &now); + send_trunk(tpeer, &now); trunk_untimed ++; } @@ -9350,7 +9349,6 @@ static void *iax_park_thread(void *stuff) struct iax_dual *d; struct ast_frame *f; int ext; - int res; d = stuff; chan1 = d->chan1; chan2 = d->chan2; @@ -9358,7 +9356,7 @@ static void *iax_park_thread(void *stuff) f = ast_read(chan1); if (f) ast_frfree(f); - res = ast_park_call(chan1, chan2, 0, d->parkexten, &ext); + ast_park_call(chan1, chan2, 0, d->parkexten, &ext); ast_hangup(chan2); ast_log(LOG_NOTICE, "Parked on extension '%d'\n", ext); return NULL; |