]> xenbits.xensource.com Git - libvirt.git/commitdiff
vz: Replace virStringSplitCount(, , , NULL) with virStringSplit
authorPeter Krempa <pkrempa@redhat.com>
Tue, 20 Oct 2020 08:08:43 +0000 (10:08 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 11 Feb 2021 16:05:33 +0000 (17:05 +0100)
The caller doesn't care about the number of tokens so use the function
which doesn't return it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/vz/vz_sdk.c

index 00891dc16a0689b1d4726a9c188bca397d6cc3c7..9ea0edaf976fbeb56703d704e0b9bd22b980e97e 100644 (file)
@@ -745,7 +745,7 @@ prlsdkGetFSInfo(PRL_HANDLE prldisk,
             goto cleanup;
         }
 
-        if (!(matches = virStringSplitCount(uri->path, "/", 0, NULL)) ||
+        if (!(matches = virStringSplit(uri->path, "/", 0)) ||
             !matches[0]) {
             virReportError(VIR_ERR_INTERNAL_ERROR,
                            _("splitting StorageUrl failed %s"), uri->path);