rename nfc_disconnect() function to nfc_close().

This commit is contained in:
Audrey Diacre 2012-01-17 14:52:39 +00:00
parent 9d3ca39a44
commit 9eb37b3eee
35 changed files with 80 additions and 80 deletions

View file

@ -119,7 +119,7 @@ main (int argc, const char *argv[])
printf ("NFC device will poll during %ld ms (%u pollings of %lu ms for %zd modulations)\n", (unsigned long) uiPollNr * szModulations * uiPeriod * 150, uiPollNr, (unsigned long) uiPeriod * 150, szModulations);
if ((res = nfc_initiator_poll_target (pnd, nmModulations, szModulations, uiPollNr, uiPeriod, &nt)) < 0) {
nfc_perror (pnd, "nfc_initiator_poll_target");
nfc_disconnect (pnd);
nfc_close (pnd);
exit (EXIT_FAILURE);
}
@ -128,6 +128,6 @@ main (int argc, const char *argv[])
} else {
printf ("No target found.\n");
}
nfc_disconnect (pnd);
nfc_close (pnd);
exit (EXIT_SUCCESS);
}