OSDN Git Service

pci_id_file_open: move variable inside the #ifndef that uses it
authorAlan Coopersmith <alan.coopersmith@oracle.com>
Tue, 25 Jun 2013 04:20:27 +0000 (21:20 -0700)
committerAlan Coopersmith <alan.coopersmith@oracle.com>
Tue, 25 Jun 2013 04:20:27 +0000 (21:20 -0700)
commit7f388e466bd7fbb7f9eba531e494e7efbd3a65dc
treefba82b88b8bbaaeab126cf0ecb62e99a2f0cf690
parenta39f054649e773a4b33bf8f52152f7c5139bb90e
pci_id_file_open: move variable inside the #ifndef that uses it

Clears up gcc warning on Solaris:
common_device_name.c: In function 'pci_id_file_open':
common_device_name.c:83:17: warning: unused variable 'result' [-Wunused-variable]

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
src/common_device_name.c