From: Michal Privoznik Date: Wed, 14 May 2025 13:40:40 +0000 (+0200) Subject: storage_backend_rbd.C: Fix return type of a volStorageBackendRBDUseFastDiff() stub X-Git-Tag: v11.4.0-rc1~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a857d993d1ee49fb047be4d764e2cf01a68ed2f2;p=thirdparty%2Flibvirt.git storage_backend_rbd.C: Fix return type of a volStorageBackendRBDUseFastDiff() stub 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 Reviewed-by: Peter Krempa --- diff --git a/src/storage/storage_backend_rbd.c b/src/storage/storage_backend_rbd.c index c2dbf3a307..fd46c8be55 100644 --- a/src/storage/storage_backend_rbd.c +++ b/src/storage/storage_backend_rbd.c @@ -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) {