strv: rename strv_endswith to endswith_strv and dedup ENDSWITH_SET

This commit is contained in:
Mike Yuan
2024-01-04 16:51:57 +08:00
parent eba8b54130
commit 2e6f012bf0
4 changed files with 22 additions and 31 deletions
+1 -1
View File
@@ -233,7 +233,7 @@ static int extract_image_basename(
return r;
if (format_suffixes) {
char *e = strv_endswith(name, format_suffixes);
char *e = endswith_strv(name, format_suffixes);
if (!e) /* Format suffix is required */
return -EINVAL;