2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

libdns refactoring: get rid of two versions of dns_client_createx

This commit is contained in:
Witold Kręcicki
2018-04-03 13:15:16 +02:00
parent d39b3209fb
commit 76e17b54ea
8 changed files with 17 additions and 34 deletions

View File

@@ -399,7 +399,7 @@ dns_client_create(dns_client_t **clientp, unsigned int options) {
isc_log_setdebuglevel(lctx, logdebuglevel);
#endif
result = dns_client_createx(mctx, actx, taskmgr, socketmgr, timermgr,
options, clientp);
options, clientp, NULL, NULL);
if (result != ISC_R_SUCCESS)
goto cleanup;
@@ -425,22 +425,11 @@ dns_client_create(dns_client_t **clientp, unsigned int options) {
}
isc_result_t
dns_client_createx(isc_mem_t *mctx, isc_appctx_t *actx, isc_taskmgr_t *taskmgr,
isc_socketmgr_t *socketmgr, isc_timermgr_t *timermgr,
unsigned int options, dns_client_t **clientp)
{
isc_result_t result;
result = dns_client_createx2(mctx, actx, taskmgr, socketmgr, timermgr,
options, clientp, NULL, NULL);
return (result);
}
isc_result_t
dns_client_createx2(isc_mem_t *mctx, isc_appctx_t *actx,
isc_taskmgr_t *taskmgr, isc_socketmgr_t *socketmgr,
isc_timermgr_t *timermgr, unsigned int options,
dns_client_t **clientp, const isc_sockaddr_t *localaddr4,
const isc_sockaddr_t *localaddr6)
dns_client_createx(isc_mem_t *mctx, isc_appctx_t *actx,
isc_taskmgr_t *taskmgr, isc_socketmgr_t *socketmgr,
isc_timermgr_t *timermgr, unsigned int options,
dns_client_t **clientp, const isc_sockaddr_t *localaddr4,
const isc_sockaddr_t *localaddr6)
{
dns_client_t *client;
isc_result_t result;