From f63ba3f31a8ae818fa87d4f87d93fded14f57997 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 14 May 2024 12:32:57 +0200 Subject: [PATCH] fix fct name mismatch --- armsrc/dbprint.c | 6 +++--- armsrc/dbprint.h | 4 ++-- armsrc/iso14443b.c | 6 +++--- armsrc/iso14443b.h | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/armsrc/dbprint.c b/armsrc/dbprint.c index afb83da4c..4c58ccbdd 100644 --- a/armsrc/dbprint.c +++ b/armsrc/dbprint.c @@ -101,9 +101,9 @@ void Dbhexdump(int len, const uint8_t *d, bool bAsci) { d += 16; } #endif -} +}void print_result(const char *name, const uint8_t *d, size_t -void print_result(const char *name, const uint8_t *d, size_t n) { + n) { const uint8_t *p = d; uint16_t tmp = n & 0xFFF0; @@ -129,7 +129,7 @@ void print_result(const char *name, const uint8_t *d, size_t n) { } // Prints message and hexdump -void print_dbg(char *msg, uint8_t *d, uint16_t n) { +void print_dbg(const char *msg, const uint8_t *d, uint16_t n) { if (g_dbglevel == DBG_DEBUG) { print_result(msg, d, n); } diff --git a/armsrc/dbprint.h b/armsrc/dbprint.h index 4bfa6c89f..bf68dc63f 100644 --- a/armsrc/dbprint.h +++ b/armsrc/dbprint.h @@ -27,8 +27,8 @@ void DbpStringEx(uint32_t flags, const char *src, size_t srclen); void Dbprintf(const char *fmt, ...); void DbprintfEx(uint32_t flags, const char *fmt, ...); void Dbhexdump(int len, const uint8_t *d, bool bAsci); -void print_result(const char *name, const uint8_t *buf, size_t len); -void print_dbg(char *msg, uint8_t *d, uint16_t n); +void print_result(const char *name, const uint8_t *d, size_t n); +void print_dbg(const char *msg, const uint8_t *d, uint16_t n); //void PrintToSendBuffer(void); #endif diff --git a/armsrc/iso14443b.c b/armsrc/iso14443b.c index d70dd7d8b..a388f76f3 100644 --- a/armsrc/iso14443b.c +++ b/armsrc/iso14443b.c @@ -1582,7 +1582,7 @@ static void CodeAndTransmit14443bAsReader(const uint8_t *cmd, int len, uint32_t /* Sends an APDU to the tag * TODO: check CRC and preamble */ -int iso14443b_apdu(uint8_t const *msg, size_t msg_len, bool send_chaining, void *rxdata, uint16_t rxmaxlen, uint8_t *response_byte, uint16_t *reponselen) { +int iso14443b_apdu(uint8_t const *msg, size_t msg_len, bool send_chaining, void *rxdata, uint16_t rxmaxlen, uint8_t *response_byte, uint16_t *responselen) { uint8_t real_cmd[msg_len + 4]; @@ -1693,8 +1693,8 @@ int iso14443b_apdu(uint8_t const *msg, size_t msg_len, bool send_chaining, void } } - if (reponselen) { - *reponselen = len; + if (responselen) { + *responselen = len; } return PM3_SUCCESS; } diff --git a/armsrc/iso14443b.h b/armsrc/iso14443b.h index f6a40a102..8e58942fb 100644 --- a/armsrc/iso14443b.h +++ b/armsrc/iso14443b.h @@ -39,7 +39,7 @@ #endif void iso14443b_setup(void); -int iso14443b_apdu(uint8_t const *msg, size_t msg_len, bool send_chaining, void *rxdata, uint16_t rxmaxlen, uint8_t *res, uint16_t *responselen); +int iso14443b_apdu(uint8_t const *msg, size_t msg_len, bool send_chaining, void *rxdata, uint16_t rxmaxlen, uint8_t *response_byte, uint16_t *responselen); int iso14443b_select_card(iso14b_card_select_t *card);