]> git.ipfire.org Git - thirdparty/libvirt.git/commit
remote: dispatch: Remove return value from make_nonnull_* helpers
authorPeter Krempa <pkrempa@redhat.com>
Tue, 22 Oct 2019 11:46:37 +0000 (13:46 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 24 Oct 2019 17:35:34 +0000 (19:35 +0200)
commit694323bbb28ce33fc5bb3c31173cde073a14dd91
tree4f1c2c0b6d7296b129d3bc3bae3a34df185935d9
parent509c6e51404d5f6ca5f3f397bc9ae1d4d14458ef
remote: dispatch: Remove return value from make_nonnull_* helpers

After conversion to g_strdup, the helpers now always return success.
Remove the return value to simplify the callers.

Note that many occurrences of these is in the code generated by
gendispatch.pl. Since gendispatch aggregates many cases together an
incremental conversion would require more invasive changes to
gendispatch for the time of conversion which doesn't make sense.

Also in many cases the helper was the last place where the 'error:'
label was used and thus also those conversions must be included in this
patch.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
ACKed-by: Eric Blake <eblake@redhat.com>
src/admin/admin_server_dispatch.c
src/remote/remote_daemon_dispatch.c
src/rpc/gendispatch.pl