ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/branches/1.1.x/src/firedns.c
(Generate patch)

Comparing hopm/branches/1.1.x/src/firedns.c (file contents):
Revision 8580 by michael, Sun Oct 14 15:15:05 2018 UTC vs.
Revision 8581 by michael, Sun Oct 14 16:58:58 2018 UTC

# Line 367 | Line 367 | firedns_getip(int type, const char *cons
367      if (info == NULL)
368        xfree(s);
369      else
370 <      list_add(&CONNECTIONS, &s->node);
370 >      list_add(s, &s->node, &CONNECTIONS);
371  
372      return -1;
373    }
# Line 379 | Line 379 | firedns_getip(int type, const char *cons
379      return -1;
380    }
381  
382 <  list_add(&CONNECTIONS, &s->node);
382 >  list_add(s, &s->node, &CONNECTIONS);
383  
384    return fd;
385   }
# Line 774 | Line 774 | firedns_getresult(const int fd)
774  
775   /* Clean-up */
776   cleanup:
777 <  list_remove(&CONNECTIONS, &c->node);
777 >  list_remove(&c->node, &CONNECTIONS);
778  
779    close(c->fd);
780    xfree(c);
# Line 814 | Line 814 | firedns_cycle(void)
814      if (p->fd > 0 && (p->start + OptionsItem.dns_timeout) < timenow)
815      {
816        /* Timed out - remove from list */
817 <      list_remove(&CONNECTIONS, &p->node);
817 >      list_remove(&p->node, &CONNECTIONS);
818  
819        memset(new_result.text, 0, sizeof(new_result.text));
820        new_result.info = p->info;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines