]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared: dissect-image: use argument comment name label
authorJelle van der Waa <jvanderwaa@redhat.com>
Wed, 7 May 2025 10:17:01 +0000 (12:17 +0200)
committerJelle van der Waa <jvanderwaa@redhat.com>
Wed, 14 May 2025 09:15:45 +0000 (11:15 +0200)
src/shared/dissect-image.c

index 7d04e23cd24fe4ca11877817db9d7cc55a797e45..30a8dec0367b82ab982db12fd993b20eae6a097b 100644 (file)
@@ -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(