rx buffer size parameter of nfc_target_init() function is now a const size_t.

This commit is contained in:
Audrey Diacre 2012-01-09 11:26:57 +00:00
parent 5e796e0a26
commit 00818e048c
14 changed files with 36 additions and 40 deletions

View file

@ -157,7 +157,6 @@ main (int argc, const char *argv[])
case PSM_DUAL_CARD:
{
uint8_t abtRx[MAX_FRAME_LEN];
size_t szRx = sizeof(abtRx);
nfc_target nt = {
.nm = {
@ -176,7 +175,7 @@ main (int argc, const char *argv[])
};
printf ("Now both, NFC device (configured as target) and SAM are readables from an external NFC initiator.\n");
printf ("Please note that NFC device (configured as target) stay in target mode until it receive RATS, ATR_REQ or proprietary command.\n");
if (nfc_target_init (pnd, &nt, abtRx, &szRx, 0) < 0) {
if (nfc_target_init (pnd, &nt, abtRx, sizeof(abtRx), 0) < 0) {
nfc_perror(pnd, "nfc_target_init");
return EXIT_FAILURE;
}