]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix res_search usage 35/2935/1
authorTimo Teräs <timo.teras@iki.fi>
Thu, 2 Jun 2016 19:57:49 +0000 (22:57 +0300)
committerTimo Teräs <timo.teras@iki.fi>
Thu, 2 Jun 2016 19:57:49 +0000 (22:57 +0300)
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

main/dns.c

index 96227949ee246c9519ed6ce12370c3cbb15d4ad1..fa94089e7929c1ce2087c7889656a418cb01b6e3 100644 (file)
@@ -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,