diff options
author | John Ferlan <jferlan@redhat.com> | 2017-03-22 09:39:53 -0400 |
---|---|---|
committer | John Ferlan <jferlan@redhat.com> | 2017-03-22 13:49:59 -0400 |
commit | 9f66e09bc5a4eda4e38cd1feb501a9cfa768f058 (patch) | |
tree | cddde34a917e3e3520d5b28dfac53bf1acd06957 /tests/virbitmaptest.c | |
parent | 0543db3a1acd42118101f0e30df9b06873d6d9e8 (diff) | |
download | libvirt-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.c | 2 |
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"); |