59 |
|
write_links_file(void *unused) |
60 |
|
{ |
61 |
|
FILE *file = NULL; |
62 |
< |
dlink_node *node = NULL, *node_next = NULL; |
62 |
> |
dlink_node *node, *node_next; |
63 |
|
char buff[IRCD_BUFSIZE] = ""; |
64 |
|
|
65 |
|
if (EmptyString(ConfigServerHide.flatten_links_file)) |
163 |
|
const int server, const int parc, char *parv[]) |
164 |
|
{ |
165 |
|
static struct server_hunt hunt; |
166 |
< |
struct server_hunt *h = &hunt; |
166 |
> |
struct server_hunt *const h = &hunt; |
167 |
|
dlink_node *node; |
168 |
|
|
169 |
|
/* Assume it's me, if no server */ |
257 |
|
void |
258 |
|
try_connections(void *unused) |
259 |
|
{ |
260 |
< |
dlink_node *node = NULL; |
260 |
> |
dlink_node *node; |
261 |
|
|
262 |
|
if (GlobalSetOptions.autoconn == 0) |
263 |
|
return; |
267 |
|
struct MaskItem *conf = node->data; |
268 |
|
|
269 |
|
assert(conf->type == CONF_SERVER); |
270 |
+ |
assert(conf->class); |
271 |
|
|
272 |
|
/* Also when already connecting! (update holdtimes) --SRB */ |
273 |
|
if (!conf->port || !IsConfAllowAutoConn(conf)) |
283 |
|
if (conf->until > CurrentTime) |
284 |
|
continue; |
285 |
|
|
285 |
– |
assert(conf->class); |
286 |
– |
|
286 |
|
conf->until = CurrentTime + conf->class->con_freq; |
287 |
|
|
288 |
|
/* |
391 |
|
void |
392 |
|
delete_capability(const char *name) |
393 |
|
{ |
394 |
< |
dlink_node *node = NULL, *node_next = NULL; |
394 |
> |
dlink_node *node, *node_next; |
395 |
|
|
396 |
|
DLINK_FOREACH_SAFE(node, node_next, server_capabilities_list.head) |
397 |
|
{ |