summaryrefslogtreecommitdiff
path: root/tests/virbitmaptest.c
diff options
context:
space:
mode:
authorJohn Ferlan <jferlan@redhat.com>2017-03-22 09:39:53 -0400
committerJohn Ferlan <jferlan@redhat.com>2017-03-22 13:49:59 -0400
commit9f66e09bc5a4eda4e38cd1feb501a9cfa768f058 (patch)
treecddde34a917e3e3520d5b28dfac53bf1acd06957 /tests/virbitmaptest.c
parent0543db3a1acd42118101f0e30df9b06873d6d9e8 (diff)
downloadlibvirt-9f66e09bc5a4eda4e38cd1feb501a9cfa768f058.tar.gz
util: Change return argument for virBitmapParseUnlimited
Rather than returning an int and a *bitmap pointer, just return and check a NULL bitmap pointer
Diffstat (limited to 'tests/virbitmaptest.c')
-rw-r--r--tests/virbitmaptest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/virbitmaptest.c b/tests/virbitmaptest.c
index 3ee07ff971..e007efc28b 100644
--- a/tests/virbitmaptest.c
+++ b/tests/virbitmaptest.c
@@ -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");