xenParseXLVnuma: Replace virStringSplitCount by g_strsplit

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2021-04-01 15:34:03 +02:00
parent b926959084
commit 94e601f5e8
1 changed files with 3 additions and 1 deletions

View File

@ -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"),