Return value of pn53x_usb_list_devices() must bool, not void*

This commit is contained in:
Romuald Conty 2010-05-28 09:55:13 +00:00
parent b05ab6285d
commit 2e39e56e17

View file

@ -89,9 +89,9 @@ bool pn53x_usb_list_devices(nfc_device_desc_t pnddDevices[], size_t szDevices, s
string[0]= '\0'; string[0]= '\0';
usb_init(); usb_init();
if ((ret= usb_find_busses() < 0)) return NULL; if ((ret= usb_find_busses() < 0)) return false;
DBG("%d busses",ret); DBG("%d busses",ret);
if ((ret= usb_find_devices() < 0)) return NULL; if ((ret= usb_find_devices() < 0)) return false;
DBG("%d devices",ret); DBG("%d devices",ret);
*pszDeviceFound= 0; *pszDeviceFound= 0;