]> xenbits.xensource.com Git - libvirt.git/commit
tests: Turn virFileWrapperAddPrefix to void
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 13 Mar 2019 08:45:25 +0000 (09:45 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 13 Mar 2019 13:15:35 +0000 (14:15 +0100)
commit288e0ab1066def1348f5b2c6e63dce24a67e617d
treec00757d4d1190a0f0ca8edb76100b908866841ea
parent8b71b0c727398469b95d025e3ec92b881969412f
tests: Turn virFileWrapperAddPrefix to void

In theory, it's nice to have virFileWrapperAddPrefix() return a
value that indicates if the function succeeded or not. But in
practice, nobody checks for that and in fact blindly believes
that the function succeeded. Therefore, make the function return
nothing and just abort() if it would fail.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
tests/virfilewrapper.c
tests/virfilewrapper.h