int irc_res_init(void) { irc_nscount = 0; parse_resvconf(); if (irc_nscount == 0) add_nameserver("127.0.0.1"); return 0; }
void irc_res_init() { irc_nscount = 0; memset(irc_nsaddr_list, 0, sizeof(irc_nsaddr_list)); parse_resvconf(); if (!irc_nscount) add_nameserver("127.0.0.1"); }
int irc_res_init(void) { irc_nscount = 0; #ifdef _WIN32 if (VerInfo.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS) return(get_res_from_reg_9x()); else if (VerInfo.dwPlatformId == VER_PLATFORM_WIN32_NT) return(get_res_from_reg_nt()); #else return(parse_resvconf()); #endif }
int irc_res_init(void) { irc_nscount = 0; #ifndef _WIN32 parse_resvconf(); #else parse_windows_resolvers(); #endif if (irc_nscount == 0) add_nameserver("127.0.0.1"); return 0; }
int irc_res_init(void) { irc_nscount = 0; return parse_resvconf(); }