c-ares: make InitC_ares_dns() private to serv_cares.c
authorWilfried Goesgens <dothebart@citadel.org>
Tue, 17 Apr 2012 21:53:31 +0000 (23:53 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Tue, 17 Apr 2012 21:53:31 +0000 (23:53 +0200)
citadel/event_client.h
citadel/modules/pop3client/serv_pop3client.c
citadel/modules/smtp/serv_smtpeventclient.c

index 6ae8b27d3b740aa5d06e7556ccda0a87f4e550ec..6f2c6ad7ad28d264158889c19328ea3d4fb443ef 100644 (file)
@@ -253,8 +253,6 @@ void StopClientWatchers(AsyncIO *IO);
 
 void SetNextTimeout(AsyncIO *IO, double timeout);
 
-void InitC_ares_dns(AsyncIO *IO);
-
 #include <curl/curl.h>
 
 #define OPT(s, v) \
index fa151f6694707e9fbae3c8f9ca883ba957be8c04..826a191abb4baae3bfb6ebf436e147d3690ce32b 100644 (file)
@@ -852,14 +852,6 @@ eNextState pop3_get_one_host_ip_done(AsyncIO *IO)
 eNextState pop3_get_one_host_ip(AsyncIO *IO)
 {
        pop3aggr *cpptr = IO->Data;
-       /*
-        * here we start with the lookup of one host. it might be...
-        * - the relay host *sigh*
-        * - the direct hostname if there was no mx record
-        * - one of the mx'es
-        */
-
-       InitC_ares_dns(IO);
 
        syslog(LOG_DEBUG, "POP3: %s\n", __FUNCTION__);
 
index ffdc63d0ea3831442305b3ddaf5d5a822862ee57..05b06aac4c8328c123557c12de61f4f86875623b 100644 (file)
@@ -413,8 +413,6 @@ eNextState get_one_mx_host_ip(AsyncIO *IO)
         * - one of the mx'es
         */
 
-       InitC_ares_dns(IO);
-
        EVS_syslog(LOG_DEBUG, "SMTP: %s\n", __FUNCTION__);
 
        EVS_syslog(LOG_DEBUG,