summaryrefslogtreecommitdiffstats
path: root/src/shared/discover-image.c
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-01-04 09:45:54 +0100
committerMike Yuan <me@yhndnzj.com>2024-01-04 09:51:57 +0100
commit2e6f012bf046b28bfb1ff170e5316a434274bfd8 (patch)
tree65204aac4ed1afb6b356cb346e2fe199759ce04e /src/shared/discover-image.c
parentstring-util: move startswith_strv to strv (diff)
downloadsystemd-2e6f012bf046b28bfb1ff170e5316a434274bfd8.tar.xz
systemd-2e6f012bf046b28bfb1ff170e5316a434274bfd8.zip
strv: rename strv_endswith to endswith_strv and dedup ENDSWITH_SET
Diffstat (limited to 'src/shared/discover-image.c')
-rw-r--r--src/shared/discover-image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/discover-image.c b/src/shared/discover-image.c
index e7e3a4d71c..ed89580d82 100644
--- a/src/shared/discover-image.c
+++ b/src/shared/discover-image.c
@@ -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;