From bc50c99edfe1121b23b1db94445165b48fb48025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Fri, 1 Dec 2017 17:26:01 +0100 Subject: [PATCH] qemuDomainNamespaceSetupHostdev: rename path to paths To match the "things/nthings" pattern used in virDomainDef. --- src/qemu/qemu_domain.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index f8ad931b20..85238013d0 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -9999,13 +9999,13 @@ qemuDomainNamespaceSetupHostdev(virQEMUDriverPtr driver, char **devMountsPath = NULL; size_t ndevMountsPath = 0; int ret = -1; - char **path = NULL; + char **paths = NULL; size_t i, npaths = 0; if (!qemuDomainNamespaceEnabled(vm, QEMU_DOMAIN_NS_MOUNT)) return 0; - if (qemuDomainGetHostdevPath(NULL, hostdev, false, &npaths, &path, NULL) < 0) + if (qemuDomainGetHostdevPath(NULL, hostdev, false, &npaths, &paths, NULL) < 0) goto cleanup; cfg = virQEMUDriverGetConfig(driver); @@ -10017,7 +10017,7 @@ qemuDomainNamespaceSetupHostdev(virQEMUDriverPtr driver, for (i = 0; i < npaths; i++) { if (qemuDomainAttachDeviceMknod(driver, vm, - path[i], + paths[i], devMountsPath, ndevMountsPath) < 0) goto cleanup; } @@ -10025,8 +10025,8 @@ qemuDomainNamespaceSetupHostdev(virQEMUDriverPtr driver, ret = 0; cleanup: for (i = 0; i < npaths; i++) - VIR_FREE(path[i]); - VIR_FREE(path); + VIR_FREE(paths[i]); + VIR_FREE(paths); virStringListFreeCount(devMountsPath, ndevMountsPath); virObjectUnref(cfg); return ret; -- GitLab