/[svn]/hopm/trunk/src/firedns.c
ViewVC logotype

Diff of /hopm/trunk/src/firedns.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5919 by michael, Wed Apr 29 11:25:48 2015 UTC revision 5920 by michael, Tue May 5 18:58:04 2015 UTC
# Line 167  firedns_init(void) Line 167  firedns_init(void)
167    CONNECTIONS = list_create();    CONNECTIONS = list_create();
168    
169    srand((unsigned int)time(NULL));    srand((unsigned int)time(NULL));
170    memset(servers4, 0, sizeof(struct in_addr) * FDNS_MAX);    memset(servers4, 0, sizeof(servers4));
171    memset(servers6, 0, sizeof(struct in6_addr) * FDNS_MAX);    memset(servers6, 0, sizeof(servers6));
172    
173    /* read etc/firedns.conf if we've got it, otherwise parse /etc/resolv.conf */    /* read etc/firedns.conf if we've got it, otherwise parse /etc/resolv.conf */
174    f = fopen(FDNS_CONFIG_PREF, "r");    f = fopen(FDNS_CONFIG_PREF, "r");

Legend:
Removed from v.5919  
changed lines
  Added in v.5920

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28