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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux