[PATCH 21/23] virStorageBackendLogicalParseVolExtents: Declare one variable per line

Peter Krempa pkrempa at redhat.com
Wed Aug 4 11:02:41 UTC 2021


Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---
 src/storage/storage_backend_logical.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/storage/storage_backend_logical.c b/src/storage/storage_backend_logical.c
index c23d0060ed..cffa2c8849 100644
--- a/src/storage/storage_backend_logical.c
+++ b/src/storage/storage_backend_logical.c
@@ -121,10 +121,13 @@ virStorageBackendLogicalParseVolExtents(virStorageVolDef *vol,
     g_autoptr(GRegex) re = NULL;
     g_autoptr(GError) err = NULL;
     g_autoptr(GMatchInfo) info = NULL;
-    int nextents, ret = -1;
+    int nextents;
+    int ret = -1;
     const char *regex_unit = "(\\S+)\\((\\S+)\\)";
     size_t i;
-    unsigned long long offset, size, length;
+    unsigned long long offset;
+    unsigned long long size;
+    unsigned long long length;
     virStorageVolSourceExtent extent;
     g_autofree char *regex = NULL;

-- 
2.31.1




More information about the libvir-list mailing list