mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-02-27 20:26:37 +00:00
nfc_initiator_init returns now error code and nfc_initiator_list_passive_targets returns now the number of targets found or error code.
This commit is contained in:
@@ -81,7 +81,7 @@ main (int argc, const char *argv[])
|
||||
|
||||
signal (SIGINT, stop_dep_communication);
|
||||
|
||||
if (!nfc_initiator_init (pnd)) {
|
||||
if (nfc_initiator_init (pnd) < 0) {
|
||||
nfc_perror(pnd, "nfc_initiator_init");
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user