virJSONValueObjectAdd now works identically to virJSONValueObjectCreate when used with a NULL argument. Replace all callers. Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx> --- src/qemu/qemu_migration_params.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/qemu/qemu_migration_params.c b/src/qemu/qemu_migration_params.c index b6c582aaca..8df7aac93a 100644 --- a/src/qemu/qemu_migration_params.c +++ b/src/qemu/qemu_migration_params.c @@ -790,10 +790,10 @@ qemuMigrationCapsToJSON(virBitmap *caps, if (!virBitmapIsBitSet(caps, bit)) continue; - if (virJSONValueObjectCreate(&cap, - "s:capability", qemuMigrationCapabilityTypeToString(bit), - "b:state", virBitmapIsBitSet(states, bit), - NULL) < 0) + if (virJSONValueObjectAdd(&cap, + "s:capability", qemuMigrationCapabilityTypeToString(bit), + "b:state", virBitmapIsBitSet(states, bit), + NULL) < 0) return NULL; if (virJSONValueArrayAppend(json, &cap) < 0) -- 2.31.1