]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: storage: Rename '@path' argument of virStorageSourceParseBackingURI
authorPeter Krempa <pkrempa@redhat.com>
Thu, 11 Oct 2018 10:18:39 +0000 (12:18 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 12 Oct 2018 14:41:48 +0000 (16:41 +0200)
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@redhat.com>
src/util/virstoragefile.c

index b2169b618dd57d983476a80c0f867817212fb854..eba82918c153a08a0acd739f3fc7b3bbffd48992 100644 (file)
@@ -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;
     }