From 36751e15b8ac7a0ed5809385645150ffaaf114d1 Mon Sep 17 00:00:00 2001 From: laforge Date: Sat, 14 Oct 2006 15:22:36 +0000 Subject: - remove prototypes for already-removed _register() functions from headers - automatically define LIBRFID_STATIC if LIBRFID_FIRMWARE is set - remove any references to printf/snprintf - remove bogus free() in 14443b_init git-svn-id: https://svn.gnumonks.org/trunk/librfid@1905 e0336214-984f-0b4b-a45f-81c69e1f0ede --- src/rfid_reader_cm5121_openct.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/rfid_reader_cm5121_openct.c') diff --git a/src/rfid_reader_cm5121_openct.c b/src/rfid_reader_cm5121_openct.c index 4bc879c..801f076 100644 --- a/src/rfid_reader_cm5121_openct.c +++ b/src/rfid_reader_cm5121_openct.c @@ -39,18 +39,13 @@ int cm5121_source_init(struct rfid_asic_transport_handle *rath) if (!h) return -1; - printf("acquiring card lock\n"); rc = ct_card_lock(h, slot, IFD_LOCK_EXCLUSIVE, &lock); - if (rc < 0) { - fprintf(stderr, "error, no card lock\n"); + if (rc < 0) return -1; - } rc = ct_card_reset(h, slot, atr, sizeof(atr)); - if (rc < 0) { - fprintf(stderr, "error, can't reset virtual card\n"); + if (rc < 0) return -1; - } rath->data = h; -- cgit v1.2.3