Searched refs:hostent_count (Results 1 – 1 of 1) sorted by relevance
264 int hostent_count=0; in ldap_domain2hostlist() local352 hostent_head = (srv_record *) LDAP_REALLOC(hostent_head, (hostent_count+1)*(sizeof(srv_record))); in ldap_domain2hostlist()357 hostent_head[hostent_count].priority=priority; in ldap_domain2hostlist()358 hostent_head[hostent_count].weight=weight; in ldap_domain2hostlist()359 hostent_head[hostent_count].port=port; in ldap_domain2hostlist()360 strncpy(hostent_head[hostent_count].hostname, host, MAXHOST-1); in ldap_domain2hostlist()361 hostent_head[hostent_count].hostname[MAXHOST-1] = '\0'; in ldap_domain2hostlist()362 hostent_count++; in ldap_domain2hostlist()368 qsort(hostent_head, hostent_count, sizeof(srv_record), srv_cmp); in ldap_domain2hostlist()376 for (i=1; i<hostent_count; i++) { in ldap_domain2hostlist()[all …]