mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
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)
|
||||
{
|
||||
|
|
|
@ -131,7 +131,7 @@ static void stats_capability(struct Client *);
|
|||
* case only matters in the stats letter column.. -- fl_
|
||||
*/
|
||||
static struct StatsStruct stats_cmd_table[] = {
|
||||
/* letter function need_oper need_admin */
|
||||
/* letter function need_oper need_admin */
|
||||
{'a', stats_dns_servers, 1, 1, },
|
||||
{'A', stats_dns_servers, 1, 1, },
|
||||
{'b', stats_delay, 1, 1, },
|
||||
|
@ -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