mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
virStorageBackendLogicalParseVolExtents: Declare one variable per line
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
bd83527521
commit
bbd89d7894
@ -121,10 +121,13 @@ virStorageBackendLogicalParseVolExtents(virStorageVolDef *vol,
|
|||||||
g_autoptr(GRegex) re = NULL;
|
g_autoptr(GRegex) re = NULL;
|
||||||
g_autoptr(GError) err = NULL;
|
g_autoptr(GError) err = NULL;
|
||||||
g_autoptr(GMatchInfo) info = NULL;
|
g_autoptr(GMatchInfo) info = NULL;
|
||||||
int nextents, ret = -1;
|
int nextents;
|
||||||
|
int ret = -1;
|
||||||
const char *regex_unit = "(\\S+)\\((\\S+)\\)";
|
const char *regex_unit = "(\\S+)\\((\\S+)\\)";
|
||||||
size_t i;
|
size_t i;
|
||||||
unsigned long long offset, size, length;
|
unsigned long long offset;
|
||||||
|
unsigned long long size;
|
||||||
|
unsigned long long length;
|
||||||
virStorageVolSourceExtent extent;
|
virStorageVolSourceExtent extent;
|
||||||
g_autofree char *regex = NULL;
|
g_autofree char *regex = NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user