]> sjero.net Git - linphone/commitdiff
Don't remove hook (done before)
authorYann Diorcet <yann.diorcet@belledonne-communications.com>
Mon, 7 Jan 2013 15:19:20 +0000 (16:19 +0100)
committerYann Diorcet <yann.diorcet@belledonne-communications.com>
Mon, 7 Jan 2013 15:19:20 +0000 (16:19 +0100)
Remove unused variable

coreapi/upnp.c

index 530bf1bf17ea3f503d27e30415bdf34afb3f620d..909fca3b376145cae1f2999270d37a5460a0aa02 100644 (file)
@@ -237,7 +237,9 @@ int upnp_context_init(LinphoneCore *lc) {
 
 void upnp_context_uninit(LinphoneCore *lc) {
        UpnpContext *lupnp = &lc->upnp;
-       linphone_core_remove_iterate_hook(lc, linphone_core_upnp_hook, lc);
+
+       // Not need, all hooks are removed before
+       //linphone_core_remove_iterate_hook(lc, linphone_core_upnp_hook, lc);
 
        if(lupnp->sip_udp != NULL) {
                upnp_port_binding_release(lupnp->sip_udp);
@@ -738,7 +740,6 @@ MSList *upnp_config_list_port_bindings(struct _LpConfig *lpc) {
        UpnpPortBinding *port;
        bool_t valid;
        MSList *elem;
-       MSList *prev_elem;
        LpItem *item;
        LpSection *sec=lp_config_find_section(lpc, UPNP_SECTION_NAME);
        if(sec == NULL)
@@ -767,7 +768,6 @@ MSList *upnp_config_list_port_bindings(struct _LpConfig *lpc) {
                } else {
                        valid = FALSE;
                }
-               prev_elem = elem;
                elem = ms_list_next(elem);
                if(!valid) {
                        ms_warning("uPnP configuration invalid line: %s", item->key);