Fix some warnings in test.
This commit is contained in:
parent
784a2f86a2
commit
9e67423cff
4 changed files with 5 additions and 5 deletions
|
@ -32,7 +32,7 @@ test_access_storm (void)
|
||||||
nfc_device *device;
|
nfc_device *device;
|
||||||
nfc_target ant[MAX_TARGET_COUNT];
|
nfc_target ant[MAX_TARGET_COUNT];
|
||||||
|
|
||||||
device = nfc_connect (&(connstrings[i]));
|
device = nfc_connect (connstrings[i]);
|
||||||
cut_assert_not_null (device, cut_message ("nfc_connect"));
|
cut_assert_not_null (device, cut_message ("nfc_connect"));
|
||||||
|
|
||||||
res = nfc_initiator_init(device);
|
res = nfc_initiator_init(device);
|
||||||
|
|
|
@ -33,8 +33,8 @@ cut_setup (void)
|
||||||
cut_omit ("At least two NFC devices must be plugged-in to run this test");
|
cut_omit ("At least two NFC devices must be plugged-in to run this test");
|
||||||
}
|
}
|
||||||
|
|
||||||
devices[TARGET] = nfc_connect (&connstrings[TARGET]);
|
devices[TARGET] = nfc_connect (connstrings[TARGET]);
|
||||||
devices[INITIATOR] = nfc_connect (&connstrings[INITIATOR]);
|
devices[INITIATOR] = nfc_connect (connstrings[INITIATOR]);
|
||||||
|
|
||||||
signal (SIGINT, abort_test_by_keypress);
|
signal (SIGINT, abort_test_by_keypress);
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ test_register_endianness (void)
|
||||||
|
|
||||||
nfc_device *device;
|
nfc_device *device;
|
||||||
|
|
||||||
device = nfc_connect (&(connstrings[0]));
|
device = nfc_connect (connstrings[0]);
|
||||||
cut_assert_not_null (device, cut_message ("nfc_connect"));
|
cut_assert_not_null (device, cut_message ("nfc_connect"));
|
||||||
|
|
||||||
uint8_t value;
|
uint8_t value;
|
||||||
|
|
|
@ -20,7 +20,7 @@ test_register_endianness (void)
|
||||||
|
|
||||||
nfc_device *device;
|
nfc_device *device;
|
||||||
|
|
||||||
device = nfc_connect (&(connstrings[0]));
|
device = nfc_connect (connstrings[0]);
|
||||||
cut_assert_not_null (device, cut_message ("nfc_connect"));
|
cut_assert_not_null (device, cut_message ("nfc_connect"));
|
||||||
|
|
||||||
uint8_t value;
|
uint8_t value;
|
||||||
|
|
Loading…
Reference in a new issue