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:
parent
d476e7583f
commit
f6bd5014bd
12
src/lsnfc.c
12
src/lsnfc.c
@ -311,8 +311,7 @@ main(int argc, const char *argv[])
|
||||
.nbr = NBR_106
|
||||
};
|
||||
if ((res = nfc_initiator_list_passive_targets(pnd, nm, ant, MAX_TARGET_COUNT)) >= 0) {
|
||||
size_t n;
|
||||
for (n = 0; n < res; n++) {
|
||||
for (int n = 0; n < res; n++) {
|
||||
print_iso14443a_name(ant[n].nti.nai);
|
||||
}
|
||||
device_tag_count += res;
|
||||
@ -320,8 +319,7 @@ main(int argc, const char *argv[])
|
||||
|
||||
nm.nmt = NMT_ISO14443B;
|
||||
if ((res = nfc_initiator_list_passive_targets(pnd, nm, ant, MAX_TARGET_COUNT)) >= 0) {
|
||||
size_t n;
|
||||
for (n = 0; n < res; n++) {
|
||||
for (int n = 0; n < res; n++) {
|
||||
printf(" ISO14443B: ");
|
||||
printf("PUPI: ");
|
||||
print_hex(ant[n].nti.nbi.abtPupi, 4);
|
||||
@ -340,8 +338,7 @@ main(int argc, const char *argv[])
|
||||
nm.nbr = NBR_212;
|
||||
// List Felica tags
|
||||
if ((res = nfc_initiator_list_passive_targets(pnd, nm, ant, MAX_TARGET_COUNT)) >= 0) {
|
||||
int n;
|
||||
for (n = 0; n < res; n++) {
|
||||
for (int n = 0; n < res; n++) {
|
||||
print_nfc_felica_info(ant[n].nti.nfi);
|
||||
printf("\n");
|
||||
}
|
||||
@ -350,8 +347,7 @@ main(int argc, const char *argv[])
|
||||
|
||||
nm.nbr = NBR_424;
|
||||
if ((res = nfc_initiator_list_passive_targets(pnd, nm, ant, MAX_TARGET_COUNT)) >= 0) {
|
||||
int n;
|
||||
for (n = 0; n < res; n++) {
|
||||
for (int n = 0; n < res; n++) {
|
||||
print_nfc_felica_info(ant[n].nti.nfi);
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user