Home
last modified time | relevance | path

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

/external/sg3_utils/src/
Dsg_logs.c819 struct log_elem ** lep_arr; in enumerate_pages() local
828 lep_arr = (struct log_elem **)calloc(k, sizeof(struct log_elem *)); in enumerate_pages()
829 if (NULL == lep_arr) { in enumerate_pages()
834 lep_arr[k] = lep; in enumerate_pages()
835 lep_arr[k++] = lep; /* put sentinel on end */ in enumerate_pages()
836 qsort(lep_arr, k, sizeof(struct log_elem *), asort_comp); in enumerate_pages()
838 for (lepp = lep_arr, j = 0; (*lepp)->pg_code >=0; ++lepp, ++j) in enumerate_pages()
840 free(lep_arr); in enumerate_pages()