From: Timo Teräs Date: Thu, 2 Jun 2016 19:57:49 +0000 (+0300) Subject: Fix res_search usage X-Git-Tag: 14.0.0-beta1~129^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c1fec80995dc9ada49f471310877e9d9e12ad55;p=thirdparty%2Fasterisk.git Fix res_search usage Resolver state is not part of res_search API. This fixes compilation error: dns.c:261:8: error: too many arguments to function 'res_search' ret = res_search(&dns_state, Change-Id: Ia600a58557040df83f744da3dde23225293845a5 --- diff --git a/main/dns.c b/main/dns.c index 96227949ee..fa94089e79 100644 --- a/main/dns.c +++ b/main/dns.c @@ -254,12 +254,10 @@ static int dns_search_res(const char *dname, int rr_class, int rr_type, { int ret = AST_DNS_SEARCH_FAILURE; - struct __res_state dns_state; ast_mutex_lock(&res_lock); res_init(); - ret = res_search(&dns_state, - dname, + ret = res_search(dname, rr_class, rr_type, dns_response,