mirror of https://github.com/getdnsapi/getdns.git
Two last warnings
This commit is contained in:
parent
6c4af3af93
commit
02516c4079
|
@ -66,7 +66,7 @@ static char *_json_ptr_first(const struct mem_funcs *mf,
|
|||
if (!(next_ref = strchr(jptr, '/')))
|
||||
next_ref = strchr(jptr, '\0');
|
||||
|
||||
if ((unsigned)(next_ref - jptr + 1) > first_sz || !first)
|
||||
if ((ssize_t)(next_ref - jptr + 1) > first_sz || !first)
|
||||
first = GETDNS_XMALLOC(*mf, char, next_ref - jptr + 1);
|
||||
|
||||
for (j = first, k = jptr; k < next_ref; j++, k++)
|
||||
|
|
|
@ -559,7 +559,7 @@ static chain_head *add_rrset2val_chain(struct mem_funcs *mf,
|
|||
if (! _dname_is_parent(*label, head->rrset.name))
|
||||
break;
|
||||
}
|
||||
if ((unsigned)(label - labels) > max_labels) {
|
||||
if ((ssize_t)(label - labels) > max_labels) {
|
||||
max_labels = label - labels;
|
||||
max_head = head;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue