]> git.ipfire.org Git - thirdparty/libvirt.git/commit
src/driver.c: remove duplicated code in virGetConnect* functions
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Tue, 8 Oct 2019 21:02:00 +0000 (18:02 -0300)
committerCole Robinson <crobinso@redhat.com>
Thu, 10 Oct 2019 17:51:18 +0000 (13:51 -0400)
commit37b565c000fd054189bc1f6398de276e47f99082
tree862e61608539b181d7db03fac51f055925701727
parentfd3b8fe7ad491c77c0b3f57110adaf64f743855e
src/driver.c: remove duplicated code in virGetConnect* functions

All the 6 virGetConnect* functions in driver.c shares the
same code base. This patch creates a new static function
virGetConnectGeneric() that contains the common code to
be used with all other virGetConnect*.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
src/driver.c