nfc_list_devices() function returns now the number of devices found.

This commit is contained in:
Audrey Diacre 2012-01-10 10:35:36 +00:00
parent 00818e048c
commit 1ec504e163
12 changed files with 23 additions and 34 deletions

View file

@ -27,9 +27,7 @@ abort_test_by_keypress (int sig)
void
cut_setup (void)
{
size_t n;
nfc_list_devices (connstrings, 2, &n);
size_t n = nfc_list_devices (connstrings, 2);
if (n < 2) {
cut_omit ("At least two NFC devices must be plugged-in to run this test");
}