Searched refs:spec_copy (Results 1 – 1 of 1) sorted by relevance
/external/selinux/libselinux/src/ |
D | label_file.h | 197 struct spec *spec_copy; in sort_specs() local 201 size_t len = sizeof(*spec_copy); in sort_specs() 203 spec_copy = malloc(len * data->nspec); in sort_specs() 204 if (!spec_copy) in sort_specs() 212 memcpy(&spec_copy[front++], &data->spec_arr[i], len); in sort_specs() 214 memcpy(&spec_copy[back--], &data->spec_arr[i], len); in sort_specs() 225 memcpy(&spec, &spec_copy[front], len); in sort_specs() 227 memcpy(&spec_copy[front], &spec_copy[back], len); in sort_specs() 229 memcpy(&spec_copy[back], &spec, len); in sort_specs() 235 data->spec_arr = spec_copy; in sort_specs()
|