• A
    pci: Use bool return type for some virPCIDeviceGet*() functions · 11ef5869
    Andrea Bolognani 提交于
    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: NJohn Ferlan <jferlan@redhat.com>
    11ef5869
virpci.h 9.0 KB