[PATCH 34/39] xenParseXLVnuma: Replace virStringSplitCount by g_strsplit

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

 



Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 src/libxl/xen_xl.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/libxl/xen_xl.c b/src/libxl/xen_xl.c
index 65cd26bb21..e8a75979d4 100644
--- a/src/libxl/xen_xl.c
+++ b/src/libxl/xen_xl.c
@@ -523,9 +523,11 @@ xenParseXLVnuma(virConfPtr conf,
                         tmp = g_strdup(vtoken);

                         g_strfreev(token);
-                        if (!(token = virStringSplitCount(tmp, ",", 0, &ndistances)))
+                        if (!(token = g_strsplit(tmp, ",", 0)))
                             goto cleanup;

+                        ndistances = g_strv_length(token);
+
                         if (ndistances != nr_nodes) {
                             virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
                                        _("vnuma pnode %d configured '%s' (count %zu) doesn't fit the number of specified vnodes %zu"),
-- 
2.29.2




[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