mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
sun cc warnings
git-svn-id: file:///svn/unbound/trunk@1439 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
c90fd40a5e
commit
0b04be414e
4 changed files with 7 additions and 11 deletions
|
|
@ -1,6 +1,7 @@
|
|||
15 January 2009: Wouter
|
||||
- bug #229: fixup configure checks for compilation with Solaris
|
||||
Sun cc compiler, ./configure CC=/opt/SUNWspro/bin/cc
|
||||
- fixup suncc warnings.
|
||||
|
||||
14 January 2009: Wouter
|
||||
- 1.2.1 feature: negative caching for failed queries.
|
||||
|
|
|
|||
|
|
@ -101,10 +101,7 @@ has_additional(uint16_t t)
|
|||
case LDNS_RR_TYPE_NAPTR:
|
||||
/* TODO: NAPTR not supported, glue stripped off */
|
||||
return 0;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
/* NOTREACHED */
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -460,14 +460,13 @@ ub_process(struct ub_ctx* ctx)
|
|||
if(r == 0)
|
||||
return UB_PIPE;
|
||||
else if(r == -1)
|
||||
return UB_NOERROR;
|
||||
break;
|
||||
if(!process_answer(ctx, msg, len)) {
|
||||
free(msg);
|
||||
return UB_PIPE;
|
||||
}
|
||||
free(msg);
|
||||
}
|
||||
/* NOTREACHED */
|
||||
return UB_NOERROR;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2182,13 +2182,12 @@ ds_response_to_ke(struct module_qstate* qstate, struct val_qstate* vq,
|
|||
} else {
|
||||
verbose(VERB_QUERY, "Encountered an unhandled type of "
|
||||
"DS response, thus bogus.");
|
||||
return_bogus:
|
||||
*ke = key_entry_create_bad(qstate->region, qinfo->qname,
|
||||
qinfo->qname_len, qinfo->qclass);
|
||||
return (*ke) != NULL;
|
||||
goto return_bogus;
|
||||
}
|
||||
/* NOTREACHED */
|
||||
return 0;
|
||||
return_bogus:
|
||||
*ke = key_entry_create_bad(qstate->region, qinfo->qname,
|
||||
qinfo->qname_len, qinfo->qclass);
|
||||
return (*ke) != NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue