From: Jelle van der Waa Date: Wed, 7 May 2025 10:17:01 +0000 (+0200) Subject: shared: dissect-image: use argument comment name label X-Git-Tag: v258-rc1~611^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=deed695faa0fcb9b8cbd21c5952097179f1bd427;p=thirdparty%2Fsystemd.git shared: dissect-image: use argument comment name label --- diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c index 7d04e23cd24..30a8dec0367 100644 --- a/src/shared/dissect-image.c +++ b/src/shared/dissect-image.c @@ -669,7 +669,7 @@ static int compare_arch(Architecture a, Architecture b) { return 0; } -static bool image_filter_test(const ImageFilter *filter, PartitionDesignator d, const char *name) { +static bool image_filter_test(const ImageFilter *filter, PartitionDesignator d, const char *label) { assert(d < _PARTITION_DESIGNATOR_MAX); if (d < 0) /* For unspecified designators we have no filter expression */ @@ -678,7 +678,7 @@ static bool image_filter_test(const ImageFilter *filter, PartitionDesignator d, if (!filter || !filter->pattern[d]) return true; - return fnmatch(filter->pattern[d], strempty(name), FNM_NOESCAPE) == 0; + return fnmatch(filter->pattern[d], strempty(label), FNM_NOESCAPE) == 0; } static int dissect_image(