mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-11 01:53:48 +00:00
Return value of pn53x_usb_list_devices() must bool, not void*
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user