nfcutils: fix minor warnings

git-svn-id: https://nfc-tools.googlecode.com/svn/trunk/nfcutils@1134 ba5c3050-9c55-11de-a262-85a698460a8e
This commit is contained in:
Romuald Conty 2013-06-13 15:53:11 +00:00
parent d476e7583f
commit f6bd5014bd

View File

@ -311,8 +311,7 @@ main(int argc, const char *argv[])
.nbr = NBR_106 .nbr = NBR_106
}; };
if ((res = nfc_initiator_list_passive_targets(pnd, nm, ant, MAX_TARGET_COUNT)) >= 0) { if ((res = nfc_initiator_list_passive_targets(pnd, nm, ant, MAX_TARGET_COUNT)) >= 0) {
size_t n; for (int n = 0; n < res; n++) {
for (n = 0; n < res; n++) {
print_iso14443a_name(ant[n].nti.nai); print_iso14443a_name(ant[n].nti.nai);
} }
device_tag_count += res; device_tag_count += res;
@ -320,8 +319,7 @@ main(int argc, const char *argv[])
nm.nmt = NMT_ISO14443B; nm.nmt = NMT_ISO14443B;
if ((res = nfc_initiator_list_passive_targets(pnd, nm, ant, MAX_TARGET_COUNT)) >= 0) { if ((res = nfc_initiator_list_passive_targets(pnd, nm, ant, MAX_TARGET_COUNT)) >= 0) {
size_t n; for (int n = 0; n < res; n++) {
for (n = 0; n < res; n++) {
printf(" ISO14443B: "); printf(" ISO14443B: ");
printf("PUPI: "); printf("PUPI: ");
print_hex(ant[n].nti.nbi.abtPupi, 4); print_hex(ant[n].nti.nbi.abtPupi, 4);
@ -340,8 +338,7 @@ main(int argc, const char *argv[])
nm.nbr = NBR_212; nm.nbr = NBR_212;
// List Felica tags // List Felica tags
if ((res = nfc_initiator_list_passive_targets(pnd, nm, ant, MAX_TARGET_COUNT)) >= 0) { if ((res = nfc_initiator_list_passive_targets(pnd, nm, ant, MAX_TARGET_COUNT)) >= 0) {
int n; for (int n = 0; n < res; n++) {
for (n = 0; n < res; n++) {
print_nfc_felica_info(ant[n].nti.nfi); print_nfc_felica_info(ant[n].nti.nfi);
printf("\n"); printf("\n");
} }
@ -350,8 +347,7 @@ main(int argc, const char *argv[])
nm.nbr = NBR_424; nm.nbr = NBR_424;
if ((res = nfc_initiator_list_passive_targets(pnd, nm, ant, MAX_TARGET_COUNT)) >= 0) { if ((res = nfc_initiator_list_passive_targets(pnd, nm, ant, MAX_TARGET_COUNT)) >= 0) {
int n; for (int n = 0; n < res; n++) {
for (n = 0; n < res; n++) {
print_nfc_felica_info(ant[n].nti.nfi); print_nfc_felica_info(ant[n].nti.nfi);
printf("\n"); printf("\n");
} }