]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
storage_backend_rbd.C: Fix return type of a volStorageBackendRBDUseFastDiff() stub
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 14 May 2025 13:40:40 +0000 (15:40 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 15 May 2025 08:49:24 +0000 (10:49 +0200)
Inside of storage_backend.c there are two implementations of
volStorageBackendRBDUseFastDiff() function: one when librbd is
new enough and one when it isn't. The former returns a bool, but
the latter is declared to return an int despite it returning a
boolean. Fix the latter.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/storage/storage_backend_rbd.c

index c2dbf3a307d38aaebf8407c32d5dfd72e2c9f1d3..fd46c8be552a2b25a7a7c4ae9b8a01bbc24bba83 100644 (file)
@@ -503,7 +503,7 @@ volStorageBackendRBDGetFlags(rbd_image_t image G_GNUC_UNUSED,
     return 0;
 }
 
-static int
+static bool
 volStorageBackendRBDUseFastDiff(uint64_t features G_GNUC_UNUSED,
                                 uint64_t feature_flags G_GNUC_UNUSED)
 {