502 |
|
static void |
503 |
|
stats_dns_servers(struct Client *source_p, int parc, char *parv[]) |
504 |
|
{ |
505 |
< |
char ipaddr[HOSTIPLEN + 1] = ""; |
505 |
> |
char ipaddr[HOSTIPLEN + 1]; |
506 |
|
|
507 |
|
for (unsigned int i = 0; i < irc_nscount; ++i) |
508 |
|
{ |
740 |
|
/* If unopered, only return matching auth blocks */ |
741 |
|
else if (ConfigGeneral.stats_i_oper_only == 1 && !HasUMode(source_p, UMODE_OPER)) |
742 |
|
{ |
743 |
< |
const struct MaskItem *conf = NULL; |
743 |
> |
const struct MaskItem *conf; |
744 |
|
|
745 |
|
if (MyConnect(source_p)) |
746 |
|
conf = find_conf_by_address(source_p->host, |
774 |
|
report_Klines(struct Client *source_p, int tkline) |
775 |
|
{ |
776 |
|
dlink_node *node; |
777 |
< |
char c = '\0'; |
777 |
> |
char c; |
778 |
|
|
779 |
|
if (tkline) |
780 |
|
c = 'k'; |
811 |
|
/* If unopered, only return matching klines */ |
812 |
|
else if (ConfigGeneral.stats_k_oper_only == 1 && !HasUMode(source_p, UMODE_OPER)) |
813 |
|
{ |
814 |
< |
const struct MaskItem *conf = NULL; |
814 |
> |
const struct MaskItem *conf; |
815 |
|
|
816 |
|
if (MyConnect(source_p)) |
817 |
|
conf = find_conf_by_address(source_p->host, |
845 |
|
/* If unopered, only return matching klines */ |
846 |
|
else if (ConfigGeneral.stats_k_oper_only == 1 && !HasUMode(source_p, UMODE_OPER)) |
847 |
|
{ |
848 |
< |
const struct MaskItem *conf = NULL; |
848 |
> |
const struct MaskItem *conf; |
849 |
|
|
850 |
|
/* Search for a kline */ |
851 |
|
if (MyConnect(source_p)) |
904 |
|
{ |
905 |
|
dlink_node *node; |
906 |
|
unsigned int opercount = 0; |
907 |
< |
char buf[IRCD_BUFSIZE] = ""; |
907 |
> |
char buf[IRCD_BUFSIZE]; |
908 |
|
|
909 |
|
DLINK_FOREACH(node, oper_list.head) |
910 |
|
{ |
1122 |
|
{ |
1123 |
|
dlink_node *node; |
1124 |
|
uintmax_t sendB = 0, recvB = 0; |
1125 |
– |
uintmax_t uptime = 0; |
1125 |
|
|
1126 |
|
if (ConfigServerHide.flatten_links && !HasUMode(source_p, UMODE_OPER)) |
1127 |
|
{ |
1163 |
|
sendto_one_numeric(source_p, &me, RPL_STATSDEBUG | SND_EXPLICIT, "? :Recv total: %7.2f %s", |
1164 |
|
_GMKv(recvB), _GMKs(recvB)); |
1165 |
|
|
1166 |
< |
uptime = (event_base->time.sec_monotonic - me.connection->created_monotonic); |
1168 |
< |
|
1166 |
> |
uintmax_t uptime = (event_base->time.sec_monotonic - me.connection->created_monotonic); |
1167 |
|
sendto_one_numeric(source_p, &me, RPL_STATSDEBUG | SND_EXPLICIT, |
1168 |
|
"? :Server send: %7.2f %s (%4.1f KiB/s)", |
1169 |
|
_GMKv((me.connection->send.bytes >> 10)), |
1222 |
|
DLINK_FOREACH(node, list->head) |
1223 |
|
{ |
1224 |
|
const struct Client *target_p = node->data; |
1225 |
< |
enum addr_mask_type type = 0; |
1225 |
> |
enum addr_mask_type type; |
1226 |
|
|
1227 |
|
if (!doall && wilds && match(name, target_p->name)) |
1228 |
|
continue; |
1275 |
|
{ |
1276 |
|
bool doall = false; |
1277 |
|
bool wilds = false; |
1278 |
< |
const char *name = NULL; |
1278 |
> |
const char *name; |
1279 |
|
|
1280 |
|
if ((name = parse_stats_args(source_p, parc, parv, &doall, &wilds))) |
1281 |
|
{ |