From a857d993d1ee49fb047be4d764e2cf01a68ed2f2 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Wed, 14 May 2025 15:40:40 +0200 Subject: [PATCH] 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 --- src/storage/storage_backend_rbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.47.2