diff --git a/src/mfoc.c b/src/mfoc.c index 2c9296a..3bb4e63 100644 --- a/src/mfoc.c +++ b/src/mfoc.c @@ -164,7 +164,7 @@ int main(int argc, char * const argv[]) { } // Initialize reader/tag structures - mf_init(&t, &r); + mf_init(&r); if (nfc_initiator_init (r.pdi) < 0) { nfc_perror (r.pdi, "nfc_initiator_init"); @@ -542,7 +542,7 @@ void usage(FILE * stream, int errno) { exit(errno); } -void mf_init(mftag *t, mfreader *r) { +void mf_init(mfreader *r) { // Connect to the first NFC device nfc_init(NULL); r->pdi = nfc_open(NULL, NULL); diff --git a/src/mfoc.h b/src/mfoc.h index 6e159bf..863bbcb 100644 --- a/src/mfoc.h +++ b/src/mfoc.h @@ -70,7 +70,7 @@ typedef struct { void usage(FILE * stream, int errno); -void mf_init(mftag *t, mfreader *r); +void mf_init(mfreader *r); void mf_configure(nfc_device* pdi); void mf_select_tag(nfc_device* pdi, nfc_target* pnt); int trailer_block(uint32_t block);