Home
last modified time | relevance | path

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

/bionic/libc/dns/net/
Dgetaddrinfo.c1825 int nelem = 0, i; in _rfc6724_sort() local
1830 ++nelem; in _rfc6724_sort()
1834 elems = (struct addrinfo_sort_elem *)malloc(nelem * sizeof(struct addrinfo_sort_elem)); in _rfc6724_sort()
1843 for (i = 0, cur = list_sentinel->ai_next; i < nelem; ++i, cur = cur->ai_next) { in _rfc6724_sort()
1857 qsort((void *)elems, nelem, sizeof(struct addrinfo_sort_elem), _rfc6724_compare); in _rfc6724_sort()
1860 for (i = 0; i < nelem - 1; ++i) { in _rfc6724_sort()
1863 elems[nelem - 1].ai->ai_next = NULL; in _rfc6724_sort()