ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/server.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/server.c (file contents):
Revision 7994 by michael, Tue Mar 14 12:22:18 2017 UTC vs.
Revision 7995 by michael, Tue Mar 14 12:36:04 2017 UTC

# Line 59 | Line 59 | void
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))
# Line 163 | Line 163 | server_hunt(struct Client *source_p, con
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 */
# Line 257 | Line 257 | server_hunt(struct Client *source_p, con
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;
# Line 267 | Line 267 | try_connections(void *unused)
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))
# Line 282 | Line 283 | try_connections(void *unused)
283      if (conf->until > CurrentTime)
284        continue;
285  
285    assert(conf->class);
286
286      conf->until = CurrentTime + conf->class->con_freq;
287  
288      /*
# Line 392 | Line 391 | add_capability(const char *name, unsigne
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    {

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)