]> xenbits.xensource.com Git - libvirt.git/commit
conf: fix inverted parameters in hash iterator callbacks
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 17 Mar 2022 12:14:13 +0000 (12:14 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 17 Mar 2022 15:29:56 +0000 (15:29 +0000)
commit991639da96867f9db1fd9a140f679d38156beb34
tree5b177cf56e1df13275933ffc3d8300972a0031a4
parent5e1da789678b788646f2a29dfae66c42582c76a5
conf: fix inverted parameters in hash iterator callbacks

virHashTableForEach unhelpfully has payload/key args in
its callback reversed compared to g_hash_table_foreach.
When converting from one to the other the semantics
change but you don't get a compile error

Reviewed-by: Erik Skultety <eskultet@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/conf/virnwfilterobj.c