tree-wide: use strv_contains() in more places

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2022-03-18 10:22:20 +01:00
committed by Lennart Poettering
parent d3e85c9c81
commit d29cc4d6e1
8 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -319,7 +319,7 @@ static int putgrent_with_members(const struct group *gr, FILE *group) {
return -ENOMEM;
STRV_FOREACH(i, a) {
if (strv_find(l, *i))
if (strv_contains(l, *i))
continue;
if (strv_extend(&l, *i) < 0)
@@ -364,7 +364,7 @@ static int putsgent_with_members(const struct sgrp *sg, FILE *gshadow) {
return -ENOMEM;
STRV_FOREACH(i, a) {
if (strv_find(l, *i))
if (strv_contains(l, *i))
continue;
if (strv_extend(&l, *i) < 0)