util: Change return argument for virBitmapParseUnlimited

Rather than returning an int and a *bitmap pointer, just return and
check a NULL bitmap pointer
This commit is contained in:
John Ferlan
2017-03-22 09:39:53 -04:00
parent 0543db3a1a
commit 9f66e09bc5
4 changed files with 17 additions and 20 deletions

View File

@@ -650,7 +650,7 @@ test12(const void *opaque ATTRIBUTE_UNUSED)
TEST_MAP(151, "128");
virBitmapFree(map);
if (virBitmapParseUnlimited("34,1023", &map) < 0)
if (!(map = virBitmapParseUnlimited("34,1023")))
goto cleanup;
TEST_MAP(1024, "34,1023");