timmerk / nfc-tools

Automatically exported from code.google.com/p/nfc-tools
0 stars 0 forks source link

mfoc complie error #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
building mfoc with latest libnfc

What is the expected output? What do you see instead?
complie error: "too few arguments to function 
‘nfc_initiator_transceive_bytes‘"

What version of the product are you using? On what operating system?
libnfc svn snapshot version
ubuntu 11.04

Please provide any additional information below.
http://code.google.com/p/nfc-tools/source/browse/trunk/mfoc/src/mifare.c#103
change to 

if (!nfc_initiator_transceive_bytes (pnd, abtCmd, 2 + szParamLen, abtRx, &szRx, 
NULL)) {

http://code.google.com/p/nfc-tools/source/browse/trunk/mfoc/src/mfoc.c#684
change to

if (!nfc_initiator_transceive_bytes(r.pdi, Auth, 4, Rx, &RxLen, NULL)) {

Original issue reported on code.google.com by superli....@gmail.com on 27 Sep 2011 at 1:10

GoogleCodeExporter commented 9 years ago
mfoc.c

684c684
<   if (!nfc_initiator_transceive_bytes(r.pdi, Auth, 4, Rx, &RxLen, NULL)) {
---
>   if (!nfc_initiator_transceive_bytes(r.pdi, Auth, 4, Rx, &RxLen)) {

mifare.c

103c103
<   if (!nfc_initiator_transceive_bytes (pnd, abtCmd, 2 + szParamLen, abtRx, 
&szRx, NULL)) {
---
>   if (!nfc_initiator_transceive_bytes (pnd, abtCmd, 2 + szParamLen, abtRx, 
&szRx)) {

Original comment by superli....@gmail.com on 27 Sep 2011 at 1:36

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r942.

Original comment by romu...@libnfc.org on 28 Sep 2011 at 3:32