From e5b384df25e201ffef05f8380761389ff6a9c606 Mon Sep 17 00:00:00 2001 From: Tristan Matthews <tristan.matthews@savoirfairelinux.com> Date: Mon, 26 Mar 2012 16:41:18 -0400 Subject: [PATCH] sipvoiplink: fix warning about variable shadowing --- daemon/src/sip/sipvoiplink.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/daemon/src/sip/sipvoiplink.cpp b/daemon/src/sip/sipvoiplink.cpp index 5fe5bad488..b25afd61a1 100644 --- a/daemon/src/sip/sipvoiplink.cpp +++ b/daemon/src/sip/sipvoiplink.cpp @@ -1807,23 +1807,23 @@ void outgoing_request_forked_cb(pjsip_inv_session * /*inv*/, pjsip_event * /*e*/ {} void transaction_state_changed_cb(pjsip_inv_session * inv, - pjsip_transaction *tsx, pjsip_event *e) + pjsip_transaction *tsx, pjsip_event *event) { assert(tsx); - assert(e); + assert(event); if (tsx->role != PJSIP_ROLE_UAS || tsx->state != PJSIP_TSX_STATE_TRYING) return; if (pjsip_method_cmp(&tsx->method, &pjsip_refer_method) ==0) { - onCallTransfered(inv, e->body.tsx_state.src.rdata); /** Handle the refer method **/ + onCallTransfered(inv, event->body.tsx_state.src.rdata); /** Handle the refer method **/ return; } pjsip_tx_data* t_data; - if (e->body.rx_msg.rdata) { - pjsip_rx_data *r_data = e->body.rx_msg.rdata; + if (event->body.rx_msg.rdata) { + pjsip_rx_data *r_data = event->body.rx_msg.rdata; if (r_data && r_data->msg_info.msg->line.req.method.id == PJSIP_OTHER_METHOD) { std::string request = pjsip_rx_data_get_info(r_data); @@ -1837,13 +1837,13 @@ void transaction_state_changed_cb(pjsip_inv_session * inv, } } - if (!e->body.tsx_state.src.rdata) + if (!event->body.tsx_state.src.rdata) return; // Incoming TEXT message // Get the message inside the transaction - pjsip_rx_data *r_data = e->body.tsx_state.src.rdata; + pjsip_rx_data *r_data = event->body.tsx_state.src.rdata; std::string formattedMessage(static_cast<char*>(r_data->msg_info.msg->body->data)); // Try to determine who is the recipient of the message -- GitLab