X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fc-ares-dns%2Fserv_c-ares-dns.c;h=6d410efa1064cb0696f7e21ae6369caa47d23db2;hb=0690ea880b4aeccb537702e5a363633bde2de724;hp=ec55ed9e0c1cc4150e5a32fb138312534475547b;hpb=635b123f22097bbb920b18e3850b0bb6faf532cc;p=citadel.git diff --git a/citadel/modules/c-ares-dns/serv_c-ares-dns.c b/citadel/modules/c-ares-dns/serv_c-ares-dns.c index ec55ed9e0..6d410efa1 100644 --- a/citadel/modules/c-ares-dns/serv_c-ares-dns.c +++ b/citadel/modules/c-ares-dns/serv_c-ares-dns.c @@ -59,8 +59,6 @@ extern struct ev_loop *event_base; -struct ares_options options; -ares_channel Channel; void SockStateCb(void *data, int sock, int read, int write); @@ -330,22 +328,12 @@ CTDL_MODULE_INIT(c_ares_client) { if (!threading) { - int optmask = 0; - - int r = ares_library_init(ARES_LIB_INIT_ALL); if (0 != r) { // TODO // ThrowException(Exception::Error(String::New(ares_strerror(r)))); //// assert(r == 0); } - - optmask |= ARES_OPT_SOCK_STATE_CB; - memset(&options, 0, sizeof(struct ares_options)); - options.sock_state_cb = SockStateCb; - - ares_init_options(&Channel, &options, optmask); - } return "c-ares"; }