]> xenbits.xensource.com Git - libvirt.git/commit
pci: Use bool return type for some virPCIDeviceGet*() functions
authorAndrea Bolognani <abologna@redhat.com>
Thu, 28 Jan 2016 08:21:43 +0000 (09:21 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 28 Jan 2016 16:27:58 +0000 (17:27 +0100)
commit11ef5869fb4ccbaf518d047adc8989753e0c6497
tree5c0b9aa986e662cc67d4bc18141d936dd3c0dd4e
parent3f3f7a824c6168f34110aaa2a713e924e31145a2
pci: Use bool return type for some virPCIDeviceGet*() functions

The affected functions are:

  virPCIDeviceGetManaged()
  virPCIDeviceGetUnbindFromStub()
  virPCIDeviceGetRemoveSlot()
  virPCIDeviceGetReprobe()

Change their return type from unsigned int to bool: the corresponding
members in struct _virPCIDevice are defined as bool, and even the
corresponding virPCIDeviceSet*() functions take a bool value as input
so there's no point in these functions having unsigned int as return
type.

Suggested-by: John Ferlan <jferlan@redhat.com>
src/util/virpci.c
src/util/virpci.h