]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Remove unused variable (rizzo)
authorOlle Johansson <oej@edvina.net>
Thu, 23 Nov 2006 10:54:40 +0000 (10:54 +0000)
committerOlle Johansson <oej@edvina.net>
Thu, 23 Nov 2006 10:54:40 +0000 (10:54 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47958 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index e6ef035d555114b72a6c62c446ee1ce4bb768bf7..f0a490ababfc829497fa227966909dfda356100f 100644 (file)
@@ -11180,7 +11180,6 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
 {
        /* Called with p->lock held, as well as p->owner->lock if appropriate, keeping things
           relatively static */
-       struct sip_request resp;
        char *cmd;
        char *cseq;
        char *useragent;
@@ -11194,9 +11193,6 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
        char *e;
        int error = 0;
 
-       /* Clear out potential response */
-       memset(&resp, 0, sizeof(resp));
-
        /* Get Method and Cseq */
        cseq = get_header(req, "Cseq");
        cmd = req->header[0];
@@ -13390,8 +13386,10 @@ static int sip_do_reload(void)
                        sip_destroy(iterator->call);
                }
                ASTOBJ_UNLOCK(iterator);
+       
        } while(0));
 
+
        ASTOBJ_CONTAINER_DESTROYALL(&userl, sip_destroy_user);
        ASTOBJ_CONTAINER_DESTROYALL(&regl, sip_registry_destroy);
        ASTOBJ_CONTAINER_MARKALL(&peerl);