]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virNetworkObjSetMacMap: take double pointer of @macmap
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 9 Aug 2022 09:38:43 +0000 (11:38 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 9 Aug 2022 15:35:11 +0000 (17:35 +0200)
commit107dfcea34347fc3c525d925f81b0682d71b7410
treefb1cf89ffe90fef0f3cb73a72b8536455128fcfc
parent3fe52b7818c6d5317f344b203ab0874e91dd3d42
virNetworkObjSetMacMap: take double pointer of @macmap

The virNetworkObjSetMacMap() API effectively steals passed
@macmap argument. However, the argument is a plain, first order
pointer. This requires every caller to set the argument to NULL
after the function was called. Let's make the function take
double pointer instead to make it obvious that the argument is
consumed.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/virnetworkobj.c
src/conf/virnetworkobj.h
src/network/bridge_driver.c