]> jfr.im git - solanum.git/blobdiff - ircd/dns.c
automake: Ensure ircd_parser.h is created
[solanum.git] / ircd / dns.c
index 67776e6675b6324a6694b674e17d09452a33c479..a3a8077e1f7a5a92cee6eabe9c37a15c3c892c2c 100644 (file)
@@ -37,9 +37,6 @@
 #include "msg.h"
 #include "hash.h"
 
-#define DNS_IDTABLE_SIZE 0x2000
-#define DNS_STATTABLE_SIZE 0x10
-
 #define DNS_HOST_IPV4          ((char)'4')
 #define DNS_HOST_IPV6          ((char)'6')
 #define DNS_REVERSE_IPV4       ((char)'R')
@@ -61,8 +58,8 @@ struct dnsstatreq
 };
 
 /* These serve as a form of sparse array */
-static struct Dictionary *query_dict;
-static struct Dictionary *stat_dict;
+static rb_dictionary *query_dict;
+static rb_dictionary *stat_dict;
 
 rb_dlink_list nameservers;
 
@@ -231,7 +228,7 @@ dns_stats_results_callback(const char *callid, const char *status, int resc, con
 {
        struct dnsstatreq *req;
        uint32_t qid;
-       int st, i;
+       int st;
        long lqid = strtol(callid, NULL, 16);
 
        if(lqid > UINT32_MAX)
@@ -306,7 +303,7 @@ void
 reload_nameservers(void)
 {
        check_authd();
-       rb_helper_write(authd_helper, "H D");
+       rb_helper_write(authd_helper, "R D");
        (void)get_nameservers(stats_results_callback, NULL);
 }