Align with libnfc API change: test nfc_init() result
This commit is contained in:
parent
86c194ef6c
commit
061b41ed2d
17 changed files with 33 additions and 3 deletions
|
|
@ -35,7 +35,8 @@ cut_setup (void)
|
|||
nfc_connstring devices[8];
|
||||
size_t device_count;
|
||||
|
||||
nfc_init(&context);
|
||||
nfc_init (&context);
|
||||
cut_assert_not_null (context, cut_message ("Unable to init libnfc (malloc)"));
|
||||
|
||||
device_count = nfc_list_devices (context, devices, 8);
|
||||
if (device_count <= 0)
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ cut_setup (void)
|
|||
size_t device_count;
|
||||
|
||||
nfc_init (&context);
|
||||
cut_assert_not_null (context, cut_message ("Unable to init libnfc (malloc)"));
|
||||
|
||||
device_count = nfc_list_devices (context, devices, 8);
|
||||
if (device_count <= 0)
|
||||
|
|
|
|||
|
|
@ -35,7 +35,8 @@ cut_setup (void)
|
|||
nfc_connstring devices[8];
|
||||
size_t device_count;
|
||||
|
||||
nfc_init(&context);
|
||||
nfc_init (&context);
|
||||
cut_assert_not_null (context, cut_message ("Unable to init libnfc (malloc)"));
|
||||
|
||||
device_count = nfc_list_devices (context, devices, 8);
|
||||
if (device_count <= 0)
|
||||
|
|
|
|||
|
|
@ -35,7 +35,8 @@ cut_setup (void)
|
|||
nfc_connstring devices[8];
|
||||
size_t device_count;
|
||||
|
||||
nfc_init(&context);
|
||||
nfc_init (&context);
|
||||
cut_assert_not_null (context, cut_message ("Unable to init libnfc (malloc)"));
|
||||
|
||||
device_count = nfc_list_devices (context, devices, 8);
|
||||
if (device_count <= 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue