Home
last modified time | relevance | path

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

/systemd-251/src/test/
Dtest-user-util.c413 int nresult; in TEST() local
415 nresult = merge_gid_lists(l2, ELEMENTSOF(l2), l3, ELEMENTSOF(l3), &res1); in TEST()
416 assert_se(nresult >= 0); in TEST()
417 assert_se(memcmp_nn(res1, nresult, result1, ELEMENTSOF(result1)) == 0); in TEST()
419 nresult = merge_gid_lists(NULL, 0, l2, ELEMENTSOF(l2), &res2); in TEST()
420 assert_se(nresult >= 0); in TEST()
421 assert_se(memcmp_nn(res2, nresult, l2, ELEMENTSOF(l2)) == 0); in TEST()
423 nresult = merge_gid_lists(l1, ELEMENTSOF(l1), l1, ELEMENTSOF(l1), &res3); in TEST()
424 assert_se(nresult >= 0); in TEST()
425 assert_se(memcmp_nn(l1, ELEMENTSOF(l1), res3, nresult) == 0); in TEST()
[all …]
/systemd-251/src/basic/
Duser-util.c497 size_t nresult = 0; in merge_gid_lists() local
509 if (!gid_list_has(buf, nresult, list1[i])) in merge_gid_lists()
510 buf[nresult++] = list1[i]; in merge_gid_lists()
512 if (!gid_list_has(buf, nresult, list2[i])) in merge_gid_lists()
513 buf[nresult++] = list2[i]; in merge_gid_lists()
515 return (int)nresult; in merge_gid_lists()