In file included from mfoc.c:48:0: mifare.h:57:3: error: unknown type name ‘byte_t’ byte_t abtKey[6]; ^ mifare.h:58:3: error: unknown type name ‘byte_t’ byte_t abtUid[4]; ^ mifare.h:62:3: error: unknown type name ‘byte_t’ byte_t abtData[16]; ^ mifare.h:66:3: error: unknown type name ‘byte_t’ byte_t abtValue[4]; ^ mifare.h:78:35: error: unknown type name ‘nfc_device_t’ bool nfc_initiator_mifare_cmd (nfc_device_t * pnd, const mifare_cmd mc, const uint8_t ui8Block, mifare_param * pmp); ^ mifare.h:85:3: error: unknown type name ‘byte_t’ byte_t abtUID[4]; ^ mifare.h:86:3: error: unknown type name ‘byte_t’ byte_t btBCC; ^ mifare.h:87:3: error: unknown type name ‘byte_t’ byte_t btUnknown; ^ mifare.h:88:3: error: unknown type name ‘byte_t’ byte_t abtATQA[2]; ^ mifare.h:89:3: error: unknown type name ‘byte_t’ byte_t abtUnknown[8]; ^ mifare.h:93:3: error: unknown type name ‘byte_t’ byte_t abtData[16]; ^ mifare.h:97:3: error: unknown type name ‘byte_t’ byte_t abtKeyA[6]; ^ mifare.h:98:3: error: unknown type name ‘byte_t’ byte_t abtAccessBits[4]; ^ mifare.h:99:3: error: unknown type name ‘byte_t’ byte_t abtKeyB[6]; ^ mifare.h:114:3: error: unknown type name ‘byte_t’ byte_t sn0[3]; ^ mifare.h:115:3: error: unknown type name ‘byte_t’ byte_t btBCC0; ^ mifare.h:116:3: error: unknown type name ‘byte_t’ byte_t sn1[4]; ^ mifare.h:117:3: error: unknown type name ‘byte_t’ byte_t btBCC1; ^ mifare.h:118:3: error: unknown type name ‘byte_t’ byte_t internal; ^ mifare.h:119:3: error: unknown type name ‘byte_t’ byte_t lock[2]; ^ mifare.h:120:3: error: unknown type name ‘byte_t’ byte_t otp[4]; ^ mifare.h:124:3: error: unknown type name ‘byte_t’ byte_t abtData[16]; ^ In file included from mfoc.c:49:0: nfc-utils.h:82:1: error: unknown type name ‘byte_t’ byte_t oddparity (const byte_t bt); ^ nfc-utils.h:82:1: error: unknown type name ‘byte_t’ nfc-utils.h:83:1: error: unknown type name ‘byte_t’ void oddparity_byte_ts (const byte_t * pbtData, const size_t szLen, byte_t * pbtPar); ^ nfc-utils.h:83:72: error: unknown type name ‘byte_t’ void oddparity_byte_ts (const byte_t * pbtData, const size_t szLen, byte_t * pbtPar); ^ nfc-utils.h:85:1: error: unknown type name ‘byte_t’ void print_hex (const byte_t * pbtData, const size_t szLen); ^ nfc-utils.h:86:1: error: unknown type name ‘byte_t’ void print_hex_bits (const byte_t * pbtData, const size_t szBits); ^ nfc-utils.h:87:1: error: unknown type name ‘byte_t’ void print_hex_par (const byte_t * pbtData, const size_t szBits, const byte_t * pbtDataPar); ^ nfc-utils.h:87:1: error: unknown type name ‘byte_t’ nfc-utils.h:89:1: error: unknown type name ‘nfc_iso14443a_info_t’ void print_nfc_iso14443a_info (const nfc_iso14443a_info_t nai, bool verbose); ^ nfc-utils.h:90:1: error: unknown type name ‘nfc_iso14443b_info_t’ void print_nfc_iso14443b_info (const nfc_iso14443b_info_t nbi, bool verbose); ^ nfc-utils.h:91:1: error: unknown type name ‘nfc_felica_info_t’ void print_nfc_felica_info (const nfc_felica_info_t nfi, bool verbose); ^ nfc-utils.h:92:1: error: unknown type name ‘nfc_jewel_info_t’ void print_nfc_jewel_info (const nfc_jewel_info_t nji, bool verbose); ^ nfc-utils.h:93:1: error: unknown type name ‘nfc_dep_info_t’ void print_nfc_dep_info (const nfc_dep_info_t ndi, bool verbose); ^ nfc-utils.h:95:1: error: unknown type name ‘nfc_target_t’ void print_nfc_target (const nfc_target_t nt, bool verbose); ^ nfc-utils.h:97:1: error: unknown type name ‘nfc_device_desc_t’ nfc_device_desc_t *parse_args (int argc, const char *argv[], size_t * szFound, bool * verbose); ^ In file included from mfoc.c:50:0: mfoc.h:27:2: error: unknown type name ‘byte_t’ byte_t KeyA[6]; ^ mfoc.h:28:2: error: unknown type name ‘byte_t’ byte_t KeyB[6]; ^ mfoc.h:31:9: error: unknown type name ‘byte_t’ byte_t trailer; // Value of a trailer block ^ mfoc.h:39:9: error: unknown type name ‘byte_t’ byte_t parity[3]; // used for 3 bits of parity information ^ mfoc.h:43:9: error: unknown type name ‘nfc_target_t’ nfc_target_t nt; ^ mfoc.h:63:9: error: unknown type name ‘nfc_device_t’ nfc_device_t *pdi; ^ mfoc.h:74:19: error: unknown type name ‘nfc_device_t’ void mf_configure(nfc_device_t* pdi); ^ mfoc.h:75:20: error: unknown type name ‘nfc_device_t’ void mf_select_tag(nfc_device_t* pdi, nfc_target_t* pnt); ^ mfoc.h:75:39: error: unknown type name ‘nfc_target_t’ void mf_select_tag(nfc_device_t* pdi, nfc_target_t* pnt); ^ mfoc.h:82:60: error: unknown type name ‘byte_t’ int valid_nonce(uint32_t Nt, uint32_t NtEnc, uint32_t Ks1, byte_t * parity); ^ mfoc.h:85:45: error: unknown type name ‘byte_t’ void num_to_bytes(uint64_t n, uint32_t len, byte_t* dest); ^ mfoc.h:86:37: error: unknown type name ‘byte_t’ long long unsigned int bytes_to_num(byte_t* src, uint32_t len); ^ mfoc.c: In function ‘main’: mfoc.c:53:2: error: unknown type name ‘nfc_modulation_t’ const nfc_modulation_t nm = { ^ mfoc.c:54:3: error: field name not in record or union initializer .nmt = NMT_ISO14443A, ^ mfoc.c:54:3: error: (near initialization for ‘nm’) mfoc.c:55:3: error: field name not in record or union initializer .nbr = NBR_106, ^ mfoc.c:55:3: error: (near initialization for ‘nm’) mfoc.c:55:3: warning: excess elements in scalar initializer [enabled by default] mfoc.c:55:3: warning: (near initialization for ‘nm’) [enabled by default] mfoc.c:73:2: error: unknown type name ‘byte_t’ byte_t * defKey = NULL; ^ mfoc.c:76:2: error: unknown type name ‘byte_t’ byte_t defaultKeys[][6] = { ^ mfoc.c:132:36: error: ‘byte_t’ undeclared (first use in this function) if ((defKey = calloc(6, sizeof(byte_t))) == NULL) { ^ mfoc.c:132:36: note: each undeclared identifier is reported only once for each function it appears in mfoc.c:140:5: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘int’ [-Wformat=] fprintf(stdout, "The custom key 0x%012llx has been added to the default keys\n", bytes_to_num(defKey, 6)); ^ mfoc.c:168:2: warning: passing argument 1 of ‘nfc_initiator_init’ from incompatible pointer type [enabled by default] if (!nfc_initiator_init (r.pdi)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:98:16: note: expected ‘struct nfc_device *’ but argument is of type ‘int *’ NFC_EXPORT int nfc_initiator_init(nfc_device *pnd); ^ mfoc.c:169:3: warning: passing argument 1 of ‘nfc_perror’ from incompatible pointer type [enabled by default] nfc_perror (r.pdi, "nfc_initiator_init"); ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:122:17: note: expected ‘const struct nfc_device *’ but argument is of type ‘int *’ NFC_EXPORT void nfc_perror(const nfc_device *pnd, const char *s); ^ mfoc.c:173:28: error: ‘NDO_ACTIVATE_FIELD’ undeclared (first use in this function) if (!nfc_configure(r.pdi, NDO_ACTIVATE_FIELD, true)) { ^ mfoc.c:174:3: warning: passing argument 1 of ‘nfc_perror’ from incompatible pointer type [enabled by default] nfc_perror (r.pdi, "nfc_configure activate field"); ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:122:17: note: expected ‘const struct nfc_device *’ but argument is of type ‘int *’ NFC_EXPORT void nfc_perror(const nfc_device *pnd, const char *s); ^ mfoc.c:178:28: error: ‘NDO_INFINITE_SELECT’ undeclared (first use in this function) if (!nfc_configure(r.pdi, NDO_INFINITE_SELECT, false)) { ^ mfoc.c:179:3: warning: passing argument 1 of ‘nfc_perror’ from incompatible pointer type [enabled by default] nfc_perror (r.pdi, "nfc_configure infinite select"); ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:122:17: note: expected ‘const struct nfc_device *’ but argument is of type ‘int *’ NFC_EXPORT void nfc_perror(const nfc_device *pnd, const char *s); ^ mfoc.c:183:28: error: ‘NDO_HANDLE_CRC’ undeclared (first use in this function) if (!nfc_configure(r.pdi, NDO_HANDLE_CRC, true)) { ^ mfoc.c:184:3: warning: passing argument 1 of ‘nfc_perror’ from incompatible pointer type [enabled by default] nfc_perror (r.pdi, "nfc_configure crc"); ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:122:17: note: expected ‘const struct nfc_device *’ but argument is of type ‘int *’ NFC_EXPORT void nfc_perror(const nfc_device *pnd, const char *s); ^ mfoc.c:187:28: error: ‘NDO_HANDLE_PARITY’ undeclared (first use in this function) if (!nfc_configure(r.pdi, NDO_HANDLE_PARITY, true)) { ^ mfoc.c:188:3: warning: passing argument 1 of ‘nfc_perror’ from incompatible pointer type [enabled by default] nfc_perror (r.pdi, "nfc_configure parity"); ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:122:17: note: expected ‘const struct nfc_device *’ but argument is of type ‘int *’ NFC_EXPORT void nfc_perror(const nfc_device *pnd, const char *s); ^ mfoc.c:198:2: warning: passing argument 1 of ‘nfc_initiator_select_passive_target’ from incompatible pointer type [enabled by default] if (!nfc_initiator_select_passive_target (r.pdi, nm, NULL, 0, &t.nt)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:100:16: note: expected ‘struct nfc_device *’ but argument is of type ‘int *’ NFC_EXPORT int nfc_initiator_select_passive_target(nfc_device *pnd, const nfc_modulation nm, const uint8_t *pbtInitData, const size_t szInitData, nfc_target *pnt); ^ mfoc.c:198:2: error: incompatible type for argument 2 of ‘nfc_initiator_select_passive_target’ if (!nfc_initiator_select_passive_target (r.pdi, nm, NULL, 0, &t.nt)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:100:16: note: expected ‘nfc_modulation’ but argument is of type ‘int’ NFC_EXPORT int nfc_initiator_select_passive_target(nfc_device *pnd, const nfc_modulation nm, const uint8_t *pbtInitData, const size_t szInitData, nfc_target *pnt); ^ mfoc.c:198:2: warning: passing argument 5 of ‘nfc_initiator_select_passive_target’ from incompatible pointer type [enabled by default] if (!nfc_initiator_select_passive_target (r.pdi, nm, NULL, 0, &t.nt)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:100:16: note: expected ‘struct nfc_target *’ but argument is of type ‘int *’ NFC_EXPORT int nfc_initiator_select_passive_target(nfc_device *pnd, const nfc_modulation nm, const uint8_t *pbtInitData, const size_t szInitData, nfc_target *pnt); ^ mfoc.c:199:3: warning: passing argument 1 of ‘nfc_perror’ from incompatible pointer type [enabled by default] nfc_perror (r.pdi, "nfc_initiator_select_passive_target"); ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:122:17: note: expected ‘const struct nfc_device *’ but argument is of type ‘int *’ NFC_EXPORT void nfc_perror(const nfc_device *pnd, const char *s); ^ mfoc.c:204:11: error: request for member ‘nti’ in something not a structure or union if ((t.nt.nti.nai.btSak & 0x08) == 0) { ^ mfoc.c:210:10: error: request for member ‘nti’ in something not a structure or union if (t.nt.nti.nai.szUidLen != 4) { ^ mfoc.c:214:15: error: request for member ‘nti’ in something not a structure or union t.b4K = (t.nt.nti.nai.abtAtqa[1] == 0x02); ^ mfoc.c:215:38: error: request for member ‘nti’ in something not a structure or union t.uid = (uint32_t) bytes_to_num(t.nt.nti.nai.abtUid, 4); ^ mfoc.c:248:32: error: request for member ‘nti’ in something not a structure or union print_nfc_iso14443a_info (t.nt.nti.nai, true); ^ mfoc.c:252:28: error: request for member ‘nti’ in something not a structure or union memcpy(mp.mpa.abtUid, t.nt.nti.nai.abtUid, sizeof(mp.mpa.abtUid)); ^ mfoc.c:258:3: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘int’ [-Wformat=] fprintf(stdout, "[Key: %012llx] -> ", bytes_to_num(mp.mpa.abtKey, 6)); ^ mfoc.c:322:30: error: request for member ‘nti’ in something not a structure or union memcpy(mp.mpa.abtUid, t.nt.nti.nai.abtUid, sizeof(mp.mpa.abtUid)); ^ mfoc.c:345:9: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘int’ [-Wformat=] bytes_to_num(mp.mpa.abtKey, 6)); ^ mfoc.c:403:11: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘int’ [-Wformat=] bytes_to_num(mp.mpa.abtKey, 6)); ^ mfoc.c:450:6: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘int’ [-Wformat=] fprintf(stdout, "Block %02d, type %c, key %012llx :", block, 'A', bytes_to_num(t.sectors[i].KeyA, 6)); ^ mfoc.c:467:8: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘int’ [-Wformat=] fprintf(stdout, "Block %02d, type %c, key %012llx :", block, 'B', bytes_to_num(t.sectors[i].KeyB, 6)); ^ mfoc.c:486:29: error: request for member ‘nti’ in something not a structure or union memcpy(mp.mpa.abtUid,t.nt.nti.nai.abtUid,4); ^ mfoc.c: In function ‘mf_init’: mfoc.c:535:9: warning: assignment makes pointer from integer without a cast [enabled by default] r->pdi = nfc_connect(NULL); ^ mfoc.c: At top level: mfoc.c:542:19: error: unknown type name ‘nfc_device_t’ void mf_configure(nfc_device_t* pdi) { ^ mfoc.c:573:20: error: unknown type name ‘nfc_device_t’ void mf_select_tag(nfc_device_t* pdi, nfc_target_t* pnt) { ^ mfoc.c:573:39: error: unknown type name ‘nfc_target_t’ void mf_select_tag(nfc_device_t* pdi, nfc_target_t* pnt) { ^ mfoc.c: In function ‘mf_anticollision’: mfoc.c:618:2: error: unknown type name ‘nfc_modulation_t’ const nfc_modulation_t nm = { ^ mfoc.c:619:3: error: field name not in record or union initializer .nmt = NMT_ISO14443A, ^ mfoc.c:619:3: error: (near initialization for ‘nm’) mfoc.c:620:3: error: field name not in record or union initializer .nbr = NBR_106, ^ mfoc.c:620:3: error: (near initialization for ‘nm’) mfoc.c:620:3: warning: excess elements in scalar initializer [enabled by default] mfoc.c:620:3: warning: (near initialization for ‘nm’) [enabled by default] mfoc.c:622:2: warning: passing argument 1 of ‘nfc_initiator_select_passive_target’ from incompatible pointer type [enabled by default] if (!nfc_initiator_select_passive_target(r.pdi, nm, NULL, 0, &t.nt)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:100:16: note: expected ‘struct nfc_device *’ but argument is of type ‘int *’ NFC_EXPORT int nfc_initiator_select_passive_target(nfc_device *pnd, const nfc_modulation nm, const uint8_t *pbtInitData, const size_t szInitData, nfc_target *pnt); ^ mfoc.c:622:2: error: incompatible type for argument 2 of ‘nfc_initiator_select_passive_target’ if (!nfc_initiator_select_passive_target(r.pdi, nm, NULL, 0, &t.nt)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:100:16: note: expected ‘nfc_modulation’ but argument is of type ‘int’ NFC_EXPORT int nfc_initiator_select_passive_target(nfc_device *pnd, const nfc_modulation nm, const uint8_t *pbtInitData, const size_t szInitData, nfc_target *pnt); ^ mfoc.c:622:2: warning: passing argument 5 of ‘nfc_initiator_select_passive_target’ from incompatible pointer type [enabled by default] if (!nfc_initiator_select_passive_target(r.pdi, nm, NULL, 0, &t.nt)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:100:16: note: expected ‘struct nfc_target *’ but argument is of type ‘int *’ NFC_EXPORT int nfc_initiator_select_passive_target(nfc_device *pnd, const nfc_modulation nm, const uint8_t *pbtInitData, const size_t szInitData, nfc_target *pnt); ^ mfoc.c:623:3: warning: passing argument 1 of ‘nfc_perror’ from incompatible pointer type [enabled by default] nfc_perror (r.pdi, "nfc_initiator_select_passive_target"); ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:122:17: note: expected ‘const struct nfc_device *’ but argument is of type ‘int *’ NFC_EXPORT void nfc_perror(const nfc_device *pnd, const char *s); ^ mfoc.c: In function ‘mf_enhanced_auth’: mfoc.c:639:2: error: unknown type name ‘byte_t’ byte_t Nr[4] = { 0x00,0x00,0x00,0x00 }; // Reader nonce ^ mfoc.c:640:2: error: unknown type name ‘byte_t’ byte_t Auth[4] = { 0x00, t.sectors[e_sector].trailer, 0x00, 0x00 }; ^ mfoc.c:641:2: error: unknown type name ‘byte_t’ byte_t AuthEnc[4] = { 0x00, t.sectors[e_sector].trailer, 0x00, 0x00 }; ^ mfoc.c:642:2: error: unknown type name ‘byte_t’ byte_t AuthEncPar[8] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }; ^ mfoc.c:644:2: error: unknown type name ‘byte_t’ byte_t ArEnc[8] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }; ^ mfoc.c:645:2: error: unknown type name ‘byte_t’ byte_t ArEncPar[8] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }; ^ mfoc.c:647:2: error: unknown type name ‘byte_t’ byte_t Rx[MAX_FRAME_LEN]; // Tag response ^ mfoc.c:648:2: error: unknown type name ‘byte_t’ byte_t RxPar[MAX_FRAME_LEN]; // Tag response ^ mfoc.c:657:2: warning: passing argument 1 of ‘iso14443a_crc_append’ from incompatible pointer type [enabled by default] iso14443a_crc_append (Auth,2); ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:137:17: note: expected ‘uint8_t *’ but argument is of type ‘int *’ NFC_EXPORT void iso14443a_crc_append(uint8_t *pbtData, size_t szLen); ^ mfoc.c:662:28: error: ‘NDO_HANDLE_CRC’ undeclared (first use in this function) if (!nfc_configure(r.pdi, NDO_HANDLE_CRC, false)) { ^ mfoc.c:663:3: warning: passing argument 1 of ‘nfc_perror’ from incompatible pointer type [enabled by default] nfc_perror (r.pdi, "nfc_configure crc"); ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:122:17: note: expected ‘const struct nfc_device *’ but argument is of type ‘int *’ NFC_EXPORT void nfc_perror(const nfc_device *pnd, const char *s); ^ mfoc.c:669:29: error: ‘NDO_EASY_FRAMING’ undeclared (first use in this function) if (!nfc_configure (r.pdi, NDO_EASY_FRAMING, false)) { ^ mfoc.c:670:3: warning: passing argument 1 of ‘nfc_perror’ from incompatible pointer type [enabled by default] nfc_perror (r.pdi, "nfc_configure framing"); ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:122:17: note: expected ‘const struct nfc_device *’ but argument is of type ‘int *’ NFC_EXPORT void nfc_perror(const nfc_device *pnd, const char *s); ^ mfoc.c:674:2: warning: passing argument 1 of ‘nfc_initiator_transceive_bytes’ from incompatible pointer type [enabled by default] if (!nfc_initiator_transceive_bytes(r.pdi, Auth, 4, Rx, &RxLen)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:106:16: note: expected ‘struct nfc_device *’ but argument is of type ‘int *’ NFC_EXPORT int nfc_initiator_transceive_bytes(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTx, uint8_t *pbtRx, const size_t szRx, int timeout); ^ mfoc.c:674:2: warning: passing argument 2 of ‘nfc_initiator_transceive_bytes’ from incompatible pointer type [enabled by default] if (!nfc_initiator_transceive_bytes(r.pdi, Auth, 4, Rx, &RxLen)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:106:16: note: expected ‘const uint8_t *’ but argument is of type ‘int *’ NFC_EXPORT int nfc_initiator_transceive_bytes(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTx, uint8_t *pbtRx, const size_t szRx, int timeout); ^ mfoc.c:674:2: warning: passing argument 4 of ‘nfc_initiator_transceive_bytes’ from incompatible pointer type [enabled by default] if (!nfc_initiator_transceive_bytes(r.pdi, Auth, 4, Rx, &RxLen)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:106:16: note: expected ‘uint8_t *’ but argument is of type ‘int *’ NFC_EXPORT int nfc_initiator_transceive_bytes(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTx, uint8_t *pbtRx, const size_t szRx, int timeout); ^ mfoc.c:674:2: warning: passing argument 5 of ‘nfc_initiator_transceive_bytes’ makes integer from pointer without a cast [enabled by default] if (!nfc_initiator_transceive_bytes(r.pdi, Auth, 4, Rx, &RxLen)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:106:16: note: expected ‘size_t’ but argument is of type ‘size_t *’ NFC_EXPORT int nfc_initiator_transceive_bytes(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTx, uint8_t *pbtRx, const size_t szRx, int timeout); ^ mfoc.c:674:2: error: too few arguments to function ‘nfc_initiator_transceive_bytes’ if (!nfc_initiator_transceive_bytes(r.pdi, Auth, 4, Rx, &RxLen)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:106:16: note: declared here NFC_EXPORT int nfc_initiator_transceive_bytes(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTx, uint8_t *pbtRx, const size_t szRx, int timeout); ^ mfoc.c:680:3: warning: passing argument 1 of ‘nfc_perror’ from incompatible pointer type [enabled by default] nfc_perror (r.pdi, "nfc_configure"); ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:122:17: note: expected ‘const struct nfc_device *’ but argument is of type ‘int *’ NFC_EXPORT void nfc_perror(const nfc_device *pnd, const char *s); ^ mfoc.c:716:28: error: ‘NDO_HANDLE_PARITY’ undeclared (first use in this function) if (!nfc_configure(r.pdi, NDO_HANDLE_PARITY, false)) { ^ mfoc.c:717:3: warning: passing argument 1 of ‘nfc_perror’ from incompatible pointer type [enabled by default] nfc_perror (r.pdi, "nfc_configure parity"); ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:122:17: note: expected ‘const struct nfc_device *’ but argument is of type ‘int *’ NFC_EXPORT void nfc_perror(const nfc_device *pnd, const char *s); ^ mfoc.c:724:2: warning: passing argument 1 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default] if ((!nfc_initiator_transceive_bits(r.pdi, ArEnc, 64, ArEncPar, Rx, &RxLen, RxPar)) || (RxLen != 32)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:107:16: note: expected ‘struct nfc_device *’ but argument is of type ‘int *’ NFC_EXPORT int nfc_initiator_transceive_bits(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTxBits, const uint8_t *pbtTxPar, uint8_t *pbtRx, const size_t szRx, uint8_t *pbtRxPar); ^ mfoc.c:724:2: warning: passing argument 2 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default] if ((!nfc_initiator_transceive_bits(r.pdi, ArEnc, 64, ArEncPar, Rx, &RxLen, RxPar)) || (RxLen != 32)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:107:16: note: expected ‘const uint8_t *’ but argument is of type ‘int *’ NFC_EXPORT int nfc_initiator_transceive_bits(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTxBits, const uint8_t *pbtTxPar, uint8_t *pbtRx, const size_t szRx, uint8_t *pbtRxPar); ^ mfoc.c:724:2: warning: passing argument 4 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default] if ((!nfc_initiator_transceive_bits(r.pdi, ArEnc, 64, ArEncPar, Rx, &RxLen, RxPar)) || (RxLen != 32)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:107:16: note: expected ‘const uint8_t *’ but argument is of type ‘int *’ NFC_EXPORT int nfc_initiator_transceive_bits(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTxBits, const uint8_t *pbtTxPar, uint8_t *pbtRx, const size_t szRx, uint8_t *pbtRxPar); ^ mfoc.c:724:2: warning: passing argument 5 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default] if ((!nfc_initiator_transceive_bits(r.pdi, ArEnc, 64, ArEncPar, Rx, &RxLen, RxPar)) || (RxLen != 32)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:107:16: note: expected ‘uint8_t *’ but argument is of type ‘int *’ NFC_EXPORT int nfc_initiator_transceive_bits(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTxBits, const uint8_t *pbtTxPar, uint8_t *pbtRx, const size_t szRx, uint8_t *pbtRxPar); ^ mfoc.c:724:2: warning: passing argument 6 of ‘nfc_initiator_transceive_bits’ makes integer from pointer without a cast [enabled by default] if ((!nfc_initiator_transceive_bits(r.pdi, ArEnc, 64, ArEncPar, Rx, &RxLen, RxPar)) || (RxLen != 32)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:107:16: note: expected ‘size_t’ but argument is of type ‘size_t *’ NFC_EXPORT int nfc_initiator_transceive_bits(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTxBits, const uint8_t *pbtTxPar, uint8_t *pbtRx, const size_t szRx, uint8_t *pbtRxPar); ^ mfoc.c:724:2: warning: passing argument 7 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default] if ((!nfc_initiator_transceive_bits(r.pdi, ArEnc, 64, ArEncPar, Rx, &RxLen, RxPar)) || (RxLen != 32)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:107:16: note: expected ‘uint8_t *’ but argument is of type ‘int *’ NFC_EXPORT int nfc_initiator_transceive_bits(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTxBits, const uint8_t *pbtTxPar, uint8_t *pbtRx, const size_t szRx, uint8_t *pbtRxPar); ^ mfoc.c:753:4: warning: passing argument 1 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default] if (!nfc_initiator_transceive_bits(r.pdi, AuthEnc, 32, AuthEncPar,Rx, &RxLen, RxPar)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:107:16: note: expected ‘struct nfc_device *’ but argument is of type ‘int *’ NFC_EXPORT int nfc_initiator_transceive_bits(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTxBits, const uint8_t *pbtTxPar, uint8_t *pbtRx, const size_t szRx, uint8_t *pbtRxPar); ^ mfoc.c:753:4: warning: passing argument 2 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default] if (!nfc_initiator_transceive_bits(r.pdi, AuthEnc, 32, AuthEncPar,Rx, &RxLen, RxPar)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:107:16: note: expected ‘const uint8_t *’ but argument is of type ‘int *’ NFC_EXPORT int nfc_initiator_transceive_bits(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTxBits, const uint8_t *pbtTxPar, uint8_t *pbtRx, const size_t szRx, uint8_t *pbtRxPar); ^ mfoc.c:753:4: warning: passing argument 4 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default] if (!nfc_initiator_transceive_bits(r.pdi, AuthEnc, 32, AuthEncPar,Rx, &RxLen, RxPar)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:107:16: note: expected ‘const uint8_t *’ but argument is of type ‘int *’ NFC_EXPORT int nfc_initiator_transceive_bits(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTxBits, const uint8_t *pbtTxPar, uint8_t *pbtRx, const size_t szRx, uint8_t *pbtRxPar); ^ mfoc.c:753:4: warning: passing argument 5 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default] if (!nfc_initiator_transceive_bits(r.pdi, AuthEnc, 32, AuthEncPar,Rx, &RxLen, RxPar)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:107:16: note: expected ‘uint8_t *’ but argument is of type ‘int *’ NFC_EXPORT int nfc_initiator_transceive_bits(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTxBits, const uint8_t *pbtTxPar, uint8_t *pbtRx, const size_t szRx, uint8_t *pbtRxPar); ^ mfoc.c:753:4: warning: passing argument 6 of ‘nfc_initiator_transceive_bits’ makes integer from pointer without a cast [enabled by default] if (!nfc_initiator_transceive_bits(r.pdi, AuthEnc, 32, AuthEncPar,Rx, &RxLen, RxPar)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:107:16: note: expected ‘size_t’ but argument is of type ‘size_t *’ NFC_EXPORT int nfc_initiator_transceive_bits(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTxBits, const uint8_t *pbtTxPar, uint8_t *pbtRx, const size_t szRx, uint8_t *pbtRxPar); ^ mfoc.c:753:4: warning: passing argument 7 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default] if (!nfc_initiator_transceive_bits(r.pdi, AuthEnc, 32, AuthEncPar,Rx, &RxLen, RxPar)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:107:16: note: expected ‘uint8_t *’ but argument is of type ‘int *’ NFC_EXPORT int nfc_initiator_transceive_bits(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTxBits, const uint8_t *pbtTxPar, uint8_t *pbtRx, const size_t szRx, uint8_t *pbtRxPar); ^ mfoc.c:782:4: warning: passing argument 1 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default] if ((!nfc_initiator_transceive_bits(r.pdi, ArEnc, 64, ArEncPar, Rx, &RxLen, RxPar)) || (RxLen != 32)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:107:16: note: expected ‘struct nfc_device *’ but argument is of type ‘int *’ NFC_EXPORT int nfc_initiator_transceive_bits(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTxBits, const uint8_t *pbtTxPar, uint8_t *pbtRx, const size_t szRx, uint8_t *pbtRxPar); ^ mfoc.c:782:4: warning: passing argument 2 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default] if ((!nfc_initiator_transceive_bits(r.pdi, ArEnc, 64, ArEncPar, Rx, &RxLen, RxPar)) || (RxLen != 32)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:107:16: note: expected ‘const uint8_t *’ but argument is of type ‘int *’ NFC_EXPORT int nfc_initiator_transceive_bits(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTxBits, const uint8_t *pbtTxPar, uint8_t *pbtRx, const size_t szRx, uint8_t *pbtRxPar); ^ mfoc.c:782:4: warning: passing argument 4 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default] if ((!nfc_initiator_transceive_bits(r.pdi, ArEnc, 64, ArEncPar, Rx, &RxLen, RxPar)) || (RxLen != 32)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:107:16: note: expected ‘const uint8_t *’ but argument is of type ‘int *’ NFC_EXPORT int nfc_initiator_transceive_bits(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTxBits, const uint8_t *pbtTxPar, uint8_t *pbtRx, const size_t szRx, uint8_t *pbtRxPar); ^ mfoc.c:782:4: warning: passing argument 5 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default] if ((!nfc_initiator_transceive_bits(r.pdi, ArEnc, 64, ArEncPar, Rx, &RxLen, RxPar)) || (RxLen != 32)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:107:16: note: expected ‘uint8_t *’ but argument is of type ‘int *’ NFC_EXPORT int nfc_initiator_transceive_bits(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTxBits, const uint8_t *pbtTxPar, uint8_t *pbtRx, const size_t szRx, uint8_t *pbtRxPar); ^ mfoc.c:782:4: warning: passing argument 6 of ‘nfc_initiator_transceive_bits’ makes integer from pointer without a cast [enabled by default] if ((!nfc_initiator_transceive_bits(r.pdi, ArEnc, 64, ArEncPar, Rx, &RxLen, RxPar)) || (RxLen != 32)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:107:16: note: expected ‘size_t’ but argument is of type ‘size_t *’ NFC_EXPORT int nfc_initiator_transceive_bits(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTxBits, const uint8_t *pbtTxPar, uint8_t *pbtRx, const size_t szRx, uint8_t *pbtRxPar); ^ mfoc.c:782:4: warning: passing argument 7 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default] if ((!nfc_initiator_transceive_bits(r.pdi, ArEnc, 64, ArEncPar, Rx, &RxLen, RxPar)) || (RxLen != 32)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:107:16: note: expected ‘uint8_t *’ but argument is of type ‘int *’ NFC_EXPORT int nfc_initiator_transceive_bits(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTxBits, const uint8_t *pbtTxPar, uint8_t *pbtRx, const size_t szRx, uint8_t *pbtRxPar); ^ mfoc.c:803:3: warning: passing argument 1 of ‘iso14443a_crc_append’ from incompatible pointer type [enabled by default] iso14443a_crc_append (Auth,2); ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:137:17: note: expected ‘uint8_t *’ but argument is of type ‘int *’ NFC_EXPORT void iso14443a_crc_append(uint8_t *pbtData, size_t szLen); ^ mfoc.c:811:3: warning: passing argument 1 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default] if (!nfc_initiator_transceive_bits(r.pdi, AuthEnc, 32, AuthEncPar,Rx, &RxLen, RxPar)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:107:16: note: expected ‘struct nfc_device *’ but argument is of type ‘int *’ NFC_EXPORT int nfc_initiator_transceive_bits(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTxBits, const uint8_t *pbtTxPar, uint8_t *pbtRx, const size_t szRx, uint8_t *pbtRxPar); ^ mfoc.c:811:3: warning: passing argument 2 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default] if (!nfc_initiator_transceive_bits(r.pdi, AuthEnc, 32, AuthEncPar,Rx, &RxLen, RxPar)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:107:16: note: expected ‘const uint8_t *’ but argument is of type ‘int *’ NFC_EXPORT int nfc_initiator_transceive_bits(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTxBits, const uint8_t *pbtTxPar, uint8_t *pbtRx, const size_t szRx, uint8_t *pbtRxPar); ^ mfoc.c:811:3: warning: passing argument 4 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default] if (!nfc_initiator_transceive_bits(r.pdi, AuthEnc, 32, AuthEncPar,Rx, &RxLen, RxPar)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:107:16: note: expected ‘const uint8_t *’ but argument is of type ‘int *’ NFC_EXPORT int nfc_initiator_transceive_bits(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTxBits, const uint8_t *pbtTxPar, uint8_t *pbtRx, const size_t szRx, uint8_t *pbtRxPar); ^ mfoc.c:811:3: warning: passing argument 5 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default] if (!nfc_initiator_transceive_bits(r.pdi, AuthEnc, 32, AuthEncPar,Rx, &RxLen, RxPar)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:107:16: note: expected ‘uint8_t *’ but argument is of type ‘int *’ NFC_EXPORT int nfc_initiator_transceive_bits(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTxBits, const uint8_t *pbtTxPar, uint8_t *pbtRx, const size_t szRx, uint8_t *pbtRxPar); ^ mfoc.c:811:3: warning: passing argument 6 of ‘nfc_initiator_transceive_bits’ makes integer from pointer without a cast [enabled by default] if (!nfc_initiator_transceive_bits(r.pdi, AuthEnc, 32, AuthEncPar,Rx, &RxLen, RxPar)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:107:16: note: expected ‘size_t’ but argument is of type ‘size_t *’ NFC_EXPORT int nfc_initiator_transceive_bits(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTxBits, const uint8_t *pbtTxPar, uint8_t *pbtRx, const size_t szRx, uint8_t *pbtRxPar); ^ mfoc.c:811:3: warning: passing argument 7 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default] if (!nfc_initiator_transceive_bits(r.pdi, AuthEnc, 32, AuthEncPar,Rx, &RxLen, RxPar)) { ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:107:16: note: expected ‘uint8_t *’ but argument is of type ‘int *’ NFC_EXPORT int nfc_initiator_transceive_bits(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTxBits, const uint8_t *pbtTxPar, uint8_t *pbtRx, const size_t szRx, uint8_t *pbtRxPar); ^ mfoc.c:818:4: warning: passing argument 1 of ‘nfc_perror’ from incompatible pointer type [enabled by default] nfc_perror (r.pdi, "nfc_configure parity restore M"); ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:122:17: note: expected ‘const struct nfc_device *’ but argument is of type ‘int *’ NFC_EXPORT void nfc_perror(const nfc_device *pnd, const char *s); ^ mfoc.c:823:4: warning: passing argument 1 of ‘nfc_perror’ from incompatible pointer type [enabled by default] nfc_perror (r.pdi, "nfc_configure crc restore M"); ^ In file included from mfoc.c:41:0: /usr/include/nfc/nfc.h:122:17: note: expected ‘const struct nfc_device *’ but argument is of type ‘int *’ NFC_EXPORT void nfc_perror(const nfc_device *pnd, const char *s); ^ mfoc.c: At top level: mfoc.c:937:60: error: unknown type name ‘byte_t’ int valid_nonce(uint32_t Nt, uint32_t NtEnc, uint32_t Ks1, byte_t * parity) { ^ mfoc.c:943:45: error: unknown type name ‘byte_t’ void num_to_bytes(uint64_t n, uint32_t len, byte_t* dest) { ^ mfoc.c:950:37: error: unknown type name ‘byte_t’ long long unsigned int bytes_to_num(byte_t* src, uint32_t len) { ^ make[2]: *** [mfoc.o] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2