From: Peter Krempa Date: Thu, 1 Apr 2021 13:34:03 +0000 (+0200) Subject: xenParseXLVnuma: Replace virStringSplitCount by g_strsplit X-Git-Tag: v7.3.0-rc1~281 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94e601f5e8e03d4f94997223f3b22bdc818935b4;p=thirdparty%2Flibvirt.git xenParseXLVnuma: Replace virStringSplitCount by g_strsplit Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- 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"),