mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
catch two unused function params, followup to RT#23310
This commit is contained in:
parent
e6a6028987
commit
b7f0ab323d
@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: resolver.c,v 1.431 2011/02/18 22:55:31 mgraff Exp $ */
|
||||
/* $Id: resolver.c,v 1.432 2011/02/18 23:39:55 mgraff Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
@ -2365,7 +2365,7 @@ add_bad(fetchctx_t *fctx, dns_adbaddrinfo_t *addrinfo, isc_result_t reason,
|
||||
* Sort addrinfo list by RTT.
|
||||
*/
|
||||
static void
|
||||
sort_adbfind(fetchctx_t *fctx, dns_adbfind_t *find) {
|
||||
sort_adbfind(dns_adbfind_t *find) {
|
||||
dns_adbaddrinfo_t *best, *curr;
|
||||
dns_adbaddrinfolist_t sorted;
|
||||
|
||||
@ -2389,7 +2389,7 @@ sort_adbfind(fetchctx_t *fctx, dns_adbfind_t *find) {
|
||||
* Sort a list of finds by server RTT.
|
||||
*/
|
||||
static void
|
||||
sort_finds(fetchctx_t *fctx, dns_adbfindlist_t *findlist) {
|
||||
sort_finds(dns_adbfindlist_t *findlist) {
|
||||
dns_adbfind_t *best, *curr;
|
||||
dns_adbfindlist_t sorted;
|
||||
dns_adbaddrinfo_t *addrinfo, *bestaddrinfo;
|
||||
@ -2398,7 +2398,7 @@ sort_finds(fetchctx_t *fctx, dns_adbfindlist_t *findlist) {
|
||||
for (curr = ISC_LIST_HEAD(*findlist);
|
||||
curr != NULL;
|
||||
curr = ISC_LIST_NEXT(curr, publink))
|
||||
sort_adbfind(fctx, curr);
|
||||
sort_adbfind(curr);
|
||||
|
||||
/* Lame N^2 bubble sort. */
|
||||
ISC_LIST_INIT(sorted);
|
||||
@ -2783,8 +2783,8 @@ fctx_getaddresses(fetchctx_t *fctx, isc_boolean_t badcache) {
|
||||
* We've found some addresses. We might still be looking
|
||||
* for more addresses.
|
||||
*/
|
||||
sort_finds(fctx, &fctx->finds);
|
||||
sort_finds(fctx, &fctx->altfinds);
|
||||
sort_finds(&fctx->finds);
|
||||
sort_finds(&fctx->altfinds);
|
||||
result = ISC_R_SUCCESS;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user