]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virhostdevtest: Check for integer retval in more verbose way
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 27 Aug 2019 14:00:10 +0000 (16:00 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 27 Aug 2019 14:00:47 +0000 (16:00 +0200)
commit9409f6b72488f4df550e9bef0da2dce9e2b0c2c8
treeb8b6fd0ed0913971a8e8a1e2603de81ed964c93c
parent76dcc854f905981989a92a5989bb6c2f461b616b
virhostdevtest: Check for integer retval in more verbose way

There are few functions called from the test which return an
integer but their retval is compared as if it was a pointer.
Now, there is nothing wrong with that from machine POV, but
from readability perspective it's wrong.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/virhostdevtest.c