]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: virbuffer: Remove @dynamic from virBufferGetIndent
authorPeter Krempa <pkrempa@redhat.com>
Thu, 24 Oct 2019 10:51:24 +0000 (12:51 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 24 Oct 2019 17:35:34 +0000 (19:35 +0200)
commit5e8551fbc0fc2c80e18d1d64ab40916d7181dc5a
tree86df1bc01479bd757f5ad10b01d0707c8e9e257c
parentc7ccb159ef7db4d25c124baf59a0a88e1f47db84
util: virbuffer: Remove @dynamic from virBufferGetIndent

After the conversion of all callers that would pass true as @dynamic to
a different function we can remove the unused argument now.

Additionally modify the return type to 'size_t' as indentation can't be
negative and remove checks whether @buf is passed as it's caller's duty
to do so.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c
src/conf/network_conf.c
src/util/virbuffer.c
src/util/virbuffer.h
tests/testutilsqemuschema.c
tests/virbuftest.c