]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
remove some unused code
authorYuri Schaeffer <yuri@nlnetlabs.nl>
Tue, 20 May 2014 07:51:07 +0000 (07:51 +0000)
committerYuri Schaeffer <yuri@nlnetlabs.nl>
Tue, 20 May 2014 07:51:07 +0000 (07:51 +0000)
git-svn-id: file:///svn/unbound/branches/edns-subnet@3132 be551aaa-1e26-0410-a405-d3ace91eadb9

edns-subnet/addrtree.c
edns-subnet/subnetmod.c

index fdbb0ac11b5b14eb1270a0b270d9dcda44f0cda5..729a3f0016ff489a3abe04f5615460095b3f52d3 100644 (file)
@@ -432,7 +432,7 @@ struct addrnode *
 addrtree_find(struct addrtree *tree, const addrkey_t *addr, 
        addrlen_t sourcemask, time_t now)
 {
-       struct addrnode *parent_node = NULL, *node = tree->root;
+       struct addrnode *node = tree->root;
        struct addredge *edge = NULL;
        addrlen_t depth = 0;
 
@@ -463,7 +463,6 @@ addrtree_find(struct addrtree *tree, const addrkey_t *addr,
                if (!issub(edge->str, edge->len, addr, sourcemask, depth))
                        return NULL;
                log_assert(depth < edge->len);
-               parent_node = node;
                depth = edge->len;
                node = edge->node;
        }
index 8628a4c5123b907d6c067bb33250b34f6c039e9c..ba1384d07800fff6c7afaf84c4b861f4708ff086 100644 (file)
@@ -275,7 +275,6 @@ common_prefix(uint8_t *a, uint8_t *b, uint8_t net)
 enum module_ext_state
 eval_response(struct module_qstate *qstate, int id)
 {
-       size_t sn_octs;
        struct edns_data *c_in  = &qstate->edns_client_in; /* rcvd from client */
        struct edns_data *c_out = &qstate->edns_client_out;/* will send to client */
        struct edns_data *s_in  = &qstate->edns_server_in; /* rcvd from auth */
@@ -308,7 +307,6 @@ eval_response(struct module_qstate *qstate, int id)
         * anywhere. */
        
        /** can we accept response? */
-       assert(sn_octs <= INET6_SIZE); /** Enforced by msgparse */
        if(s_out->subnet_addr_fam != s_in->subnet_addr_fam ||
                s_out->subnet_source_mask != s_in->subnet_source_mask ||
                !common_prefix(s_out->subnet_addr, s_in->subnet_addr, 
@@ -388,14 +386,15 @@ subnetmod_operate(struct module_qstate *qstate, enum module_ev event,
 }
 
 void
-subnetmod_clear(struct module_qstate *qstate, int id)
+subnetmod_clear(struct module_qstate *ATTR_UNUSED(qstate),
+       int ATTR_UNUSED(id))
 {
        /* qstate has no data outside region */
 }
 
 void
-subnetmod_inform_super(struct module_qstate *qstate, int id, 
-       struct module_qstate *super)
+subnetmod_inform_super(struct module_qstate *ATTR_UNUSED(qstate),
+       int ATTR_UNUSED(id), struct module_qstate *ATTR_UNUSED(super))
 {
        /* Not used */
 }