summaryrefslogtreecommitdiff
path: root/iterator
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2018-05-12 11:49:30 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2018-05-12 11:49:30 +0000
commitfbdb9ac866a647da0919b224f05cca039afc02fa (patch)
treea4ddb15b51a795c9f985e693a04d992a94f4f455 /iterator
parent31f8d531e1359c7acd82cff9ab798cdeac277adc (diff)
Diffstat (limited to 'iterator')
-rw-r--r--iterator/iter_donotq.h2
-rw-r--r--iterator/iter_fwd.c8
-rw-r--r--iterator/iter_fwd.h4
-rw-r--r--iterator/iter_hints.c2
-rw-r--r--iterator/iter_hints.h2
-rw-r--r--iterator/iter_priv.h4
-rw-r--r--iterator/iter_scrub.c4
-rw-r--r--iterator/iter_utils.c2
-rw-r--r--iterator/iterator.c2
-rw-r--r--iterator/iterator.h4
10 files changed, 17 insertions, 17 deletions
diff --git a/iterator/iter_donotq.h b/iterator/iter_donotq.h
index 429e5a3dd26d6..14105073aa37c 100644
--- a/iterator/iter_donotq.h
+++ b/iterator/iter_donotq.h
@@ -58,7 +58,7 @@ struct iter_donotq {
* contents of type addr_tree_node. Each node is an address span
* that must not be used to send queries to.
*/
- rbtree_t tree;
+ rbtree_type tree;
};
/**
diff --git a/iterator/iter_fwd.c b/iterator/iter_fwd.c
index 1c40d41641da0..0ba6c6ddfa9eb 100644
--- a/iterator/iter_fwd.c
+++ b/iterator/iter_fwd.c
@@ -82,7 +82,7 @@ static void fwd_zone_free(struct iter_forward_zone* n)
free(n);
}
-static void delfwdnode(rbnode_t* n, void* ATTR_UNUSED(arg))
+static void delfwdnode(rbnode_type* n, void* ATTR_UNUSED(arg))
{
struct iter_forward_zone* node = (struct iter_forward_zone*)n;
fwd_zone_free(node);
@@ -332,7 +332,7 @@ forwards_apply_cfg(struct iter_forwards* fwd, struct config_file* cfg)
struct delegpt*
forwards_find(struct iter_forwards* fwd, uint8_t* qname, uint16_t qclass)
{
- rbnode_t* res = NULL;
+ rbnode_type* res = NULL;
struct iter_forward_zone key;
key.node.key = &key;
key.dclass = qclass;
@@ -347,7 +347,7 @@ struct delegpt*
forwards_lookup(struct iter_forwards* fwd, uint8_t* qname, uint16_t qclass)
{
/* lookup the forward zone in the tree */
- rbnode_t* res = NULL;
+ rbnode_type* res = NULL;
struct iter_forward_zone *result;
struct iter_forward_zone key;
key.node.key = &key;
@@ -388,7 +388,7 @@ int
forwards_next_root(struct iter_forwards* fwd, uint16_t* dclass)
{
struct iter_forward_zone key;
- rbnode_t* n;
+ rbnode_type* n;
struct iter_forward_zone* p;
if(*dclass == 0) {
/* first root item is first item in tree */
diff --git a/iterator/iter_fwd.h b/iterator/iter_fwd.h
index 20113a395ecc0..e90b74c16a5d9 100644
--- a/iterator/iter_fwd.h
+++ b/iterator/iter_fwd.h
@@ -57,7 +57,7 @@ struct iter_forwards {
* match which gives the ancestor needed.
* contents of type iter_forward_zone.
*/
- rbtree_t* tree;
+ rbtree_type* tree;
};
/**
@@ -65,7 +65,7 @@ struct iter_forwards {
*/
struct iter_forward_zone {
/** redblacktree node, key is this structure: class and name */
- rbnode_t node;
+ rbnode_type node;
/** name */
uint8_t* name;
/** length of name */
diff --git a/iterator/iter_hints.c b/iterator/iter_hints.c
index 7fb665200c634..74869d3554728 100644
--- a/iterator/iter_hints.c
+++ b/iterator/iter_hints.c
@@ -67,7 +67,7 @@ static void hints_stub_free(struct iter_hints_stub* s)
free(s);
}
-static void delhintnode(rbnode_t* n, void* ATTR_UNUSED(arg))
+static void delhintnode(rbnode_type* n, void* ATTR_UNUSED(arg))
{
struct iter_hints_stub* node = (struct iter_hints_stub*)n;
hints_stub_free(node);
diff --git a/iterator/iter_hints.h b/iterator/iter_hints.h
index 715ec9f410635..06b4b9667d135 100644
--- a/iterator/iter_hints.h
+++ b/iterator/iter_hints.h
@@ -59,7 +59,7 @@ struct iter_hints {
* contents of type iter_hints_stub. The class IN root is in here.
* uses name_tree_node from dnstree.h.
*/
- rbtree_t tree;
+ rbtree_type tree;
};
/**
diff --git a/iterator/iter_priv.h b/iterator/iter_priv.h
index 6fa84900bf184..0430d57e3e3bf 100644
--- a/iterator/iter_priv.h
+++ b/iterator/iter_priv.h
@@ -60,14 +60,14 @@ struct iter_priv {
* contents of type addr_tree_node.
* No further data need, only presence or absence.
*/
- rbtree_t a;
+ rbtree_type a;
/**
* Tree of the domains spans that are allowed to contain
* the blocked address spans.
* contents of type name_tree_node.
* No further data need, only presence or absence.
*/
- rbtree_t n;
+ rbtree_type n;
};
/**
diff --git a/iterator/iter_scrub.c b/iterator/iter_scrub.c
index 8a3fc170c053e..1bee85c0b991d 100644
--- a/iterator/iter_scrub.c
+++ b/iterator/iter_scrub.c
@@ -161,8 +161,8 @@ mark_additional_rrset(sldns_buffer* pkt, struct msg_parse* msg,
for(rr = rrset->rr_first; rr; rr = rr->next) {
if(get_additional_name(rrset, rr, &nm, &nmlen, pkt)) {
/* mark A */
- hashvalue_t h = pkt_hash_rrset(pkt, nm, LDNS_RR_TYPE_A,
- rrset->rrset_class, 0);
+ hashvalue_type h = pkt_hash_rrset(pkt, nm,
+ LDNS_RR_TYPE_A, rrset->rrset_class, 0);
struct rrset_parse* r = msgparse_hashtable_lookup(
msg, pkt, h, 0, nm, nmlen,
LDNS_RR_TYPE_A, rrset->rrset_class);
diff --git a/iterator/iter_utils.c b/iterator/iter_utils.c
index 344b6aafd7fb1..0b1b456113f7a 100644
--- a/iterator/iter_utils.c
+++ b/iterator/iter_utils.c
@@ -108,7 +108,7 @@ read_fetch_policy(struct iter_env* ie, const char* str)
/** apply config caps whitelist items to name tree */
static int
-caps_white_apply_cfg(rbtree_t* ntree, struct config_file* cfg)
+caps_white_apply_cfg(rbtree_type* ntree, struct config_file* cfg)
{
struct config_strlist* p;
for(p=cfg->caps_whitelist; p; p=p->next) {
diff --git a/iterator/iterator.c b/iterator/iterator.c
index f60893323a10e..99ce96f384ee7 100644
--- a/iterator/iterator.c
+++ b/iterator/iterator.c
@@ -88,7 +88,7 @@ iter_init(struct module_env* env, int id)
/** delete caps_whitelist element */
static void
-caps_free(struct rbnode_t* n, void* ATTR_UNUSED(d))
+caps_free(struct rbnode_type* n, void* ATTR_UNUSED(d))
{
if(n) {
free(((struct name_tree_node*)n)->name);
diff --git a/iterator/iterator.h b/iterator/iterator.h
index 5585f578958dc..37b0ab0dc24ab 100644
--- a/iterator/iterator.h
+++ b/iterator/iterator.h
@@ -51,7 +51,7 @@ struct iter_forwards;
struct iter_donotq;
struct iter_prep_list;
struct iter_priv;
-struct rbtree_t;
+struct rbtree_type;
/** max number of targets spawned for a query and its subqueries */
#define MAX_TARGET_COUNT 64
@@ -115,7 +115,7 @@ struct iter_env {
struct iter_priv* priv;
/** whitelist for capsforid names */
- struct rbtree_t* caps_white;
+ struct rbtree_type* caps_white;
/** The maximum dependency depth that this resolver will pursue. */
int max_dependency_depth;