dns: prune worthless function.
This commit is contained in:
parent
8a26cd1973
commit
55799c6b4d
3 changed files with 7 additions and 14 deletions
|
@ -39,7 +39,6 @@ uint16_t lookup_ip(const char *hostname, int aftype, DNSCB callback, void *data)
|
|||
void cancel_lookup(uint16_t xid);
|
||||
void dns_results_callback(const char *callid, const char *status, const char *aftype, const char *results);
|
||||
void dns_stats_results_callback(const char *callid, const char *status, int resc, const char *resv[]);
|
||||
void report_dns_servers(struct Client *);
|
||||
void init_nameserver_cache(void);
|
||||
|
||||
#endif
|
||||
|
|
11
ircd/dns.c
11
ircd/dns.c
|
@ -316,17 +316,6 @@ get_nameservers_cb(int resc, const char *resv[], int status, void *data)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
report_dns_servers(struct Client *source_p)
|
||||
{
|
||||
rb_dlink_node *n;
|
||||
|
||||
RB_DLINK_FOREACH(n, nameservers.head)
|
||||
{
|
||||
sendto_one_numeric(source_p, RPL_STATSDEBUG, "A %s", (char *)n->data);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
init_nameserver_cache(void)
|
||||
{
|
||||
|
|
|
@ -266,7 +266,12 @@ stats_out:
|
|||
static void
|
||||
stats_dns_servers (struct Client *source_p)
|
||||
{
|
||||
report_dns_servers (source_p);
|
||||
rb_dlink_node *n;
|
||||
|
||||
RB_DLINK_FOREACH(n, nameservers.head)
|
||||
{
|
||||
sendto_one_numeric(source_p, RPL_STATSDEBUG, "A %s", (char *)n->data);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue