From 2e39e56e176a6d520a584bb8fa917e52521795c3 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Fri, 28 May 2010 09:55:13 +0000 Subject: [PATCH] Return value of pn53x_usb_list_devices() must bool, not void* --- libnfc/drivers/pn53x_usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libnfc/drivers/pn53x_usb.c b/libnfc/drivers/pn53x_usb.c index 008c68c..fce726f 100644 --- a/libnfc/drivers/pn53x_usb.c +++ b/libnfc/drivers/pn53x_usb.c @@ -89,9 +89,9 @@ bool pn53x_usb_list_devices(nfc_device_desc_t pnddDevices[], size_t szDevices, s string[0]= '\0'; usb_init(); - if ((ret= usb_find_busses() < 0)) return NULL; + if ((ret= usb_find_busses() < 0)) return false; DBG("%d busses",ret); - if ((ret= usb_find_devices() < 0)) return NULL; + if ((ret= usb_find_devices() < 0)) return false; DBG("%d devices",ret); *pszDeviceFound= 0;