Home
last modified time | relevance | path

Searched refs:nelem (Results 1 – 1 of 1) sorted by relevance

/packages/modules/DnsResolver/
Dgetaddrinfo.cpp1339 int nelem = 0, i; in resolv_rfc6724_sort() local
1344 ++nelem; in resolv_rfc6724_sort()
1348 elems = (struct addrinfo_sort_elem*) calloc(nelem, sizeof(struct addrinfo_sort_elem)); in resolv_rfc6724_sort()
1357 for (i = 0, cur = list_sentinel->ai_next; i < nelem; ++i, cur = cur->ai_next) { in resolv_rfc6724_sort()
1372 qsort((void*) elems, nelem, sizeof(struct addrinfo_sort_elem), _rfc6724_compare); in resolv_rfc6724_sort()
1375 for (i = 0; i < nelem - 1; ++i) { in resolv_rfc6724_sort()
1378 elems[nelem - 1].ai->ai_next = NULL; in resolv_rfc6724_sort()