From 04f0ccf7ef81e96d40a1b519b49100adc48d7036 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Tue, 28 Aug 2012 22:44:56 +0000 Subject: [PATCH] Code cleanup --- src/modems/sofia.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modems/sofia.c b/src/modems/sofia.c index dac424b..f4cac59 100644 --- a/src/modems/sofia.c +++ b/src/modems/sofia.c @@ -295,6 +295,7 @@ static void _sofia_callback(nua_event_t event, int status, char const * phrase, { ModemPlugin * modem = magic; Sofia * sofia = modem; + ModemPluginHelper * helper = modem->helper; ModemEvent mevent; #ifdef DEBUG @@ -319,7 +320,7 @@ static void _sofia_callback(nua_event_t event, int status, char const * phrase, mevent.type = MODEM_EVENT_TYPE_CALL; /* FIXME also remember the other fields */ mevent.call.status = MODEM_CALL_STATUS_NONE; - modem->helper->event(modem->helper->modem, &mevent); + helper->event(helper->modem, &mevent); break; case nua_r_invite: memset(&mevent, 0, sizeof(mevent)); @@ -338,7 +339,7 @@ static void _sofia_callback(nua_event_t event, int status, char const * phrase, fprintf(stderr, "r_invite %03d %s\n", status, phrase); } - modem->helper->event(modem->helper->modem, &mevent); + helper->event(helper->modem, &mevent); break; case nua_r_message: _callback_message(modem, status, phrase);