Define PCI_MATCH_ANY as an unsigned int
authorAlan Coopersmith <alan.coopersmith@oracle.com>
Tue, 25 Jun 2013 04:09:52 +0000 (21:09 -0700)
committerAlan Coopersmith <alan.coopersmith@oracle.com>
Tue, 25 Jun 2013 04:11:12 +0000 (21:11 -0700)
commita39f054649e773a4b33bf8f52152f7c5139bb90e
tree6d502df0fbab765cc7338d7d0215324d80392b9e
parent5aff35d1ef659babd71f44f7963e4e908dcd86c4
Define PCI_MATCH_ANY as an unsigned int

Clears a bunch of clang warnings of the forms:

common_device_name.c:345:23: warning: comparison of integers of different signs:
 'const uint32_t' (aka 'const unsigned int') and 'int' [-Wsign-compare]
    if ( m->vendor_id == PCI_MATCH_ANY ) {
         ~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~

common_device_name.c:498:19: warning: implicit conversion changes signedness:
 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
    m.device_id = PCI_MATCH_ANY;
                ~ ^~~~~~~~~~~~~

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
include/pciaccess.h