Align with libnfc API change: test nfc_init() result

This commit is contained in:
Philippe Teuwen 2013-03-30 18:07:34 +01:00
parent 86c194ef6c
commit 061b41ed2d
17 changed files with 33 additions and 3 deletions

View file

@ -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)