[libvirt] [PATCH 1/2] util: storage: Rename '@path' argument of virStorageSourceParseBackingURI

Peter Krempa pkrempa at redhat.com
Thu Oct 11 11:01:16 UTC 2018


The name is misleading. Change it to 'uristr' so that 'path' can be
reused in the proper context later.

Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---
 src/util/virstoragefile.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/util/virstoragefile.c b/src/util/virstoragefile.c
index b2169b618d..eba82918c1 100644
--- a/src/util/virstoragefile.c
+++ b/src/util/virstoragefile.c
@@ -2576,16 +2576,16 @@ virStorageSourceNewFromBackingRelative(virStorageSourcePtr parent,

 static int
 virStorageSourceParseBackingURI(virStorageSourcePtr src,
-                                const char *path)
+                                const char *uristr)
 {
     virURIPtr uri = NULL;
     char **scheme = NULL;
     int ret = -1;

-    if (!(uri = virURIParse(path))) {
+    if (!(uri = virURIParse(uristr))) {
         virReportError(VIR_ERR_INTERNAL_ERROR,
                        _("failed to parse backing file location '%s'"),
-                       path);
+                       uristr);
         goto cleanup;
     }

-- 
2.17.1




More information about the libvir-list mailing list