remove autogenerated file
[librfid] / src / rfid_reader_cm5121_openct.c
index 4bc879c..244ecee 100644 (file)
@@ -13,8 +13,8 @@ static int slot = 1;
 /* this is the sole function required by rfid_reader_cm5121.c */
 int 
 PC_to_RDR_Escape(void *handle, 
-                const unsigned char *tx_buf, unsigned int tx_len,
-                unsigned char *rx_buf, unsigned int *rx_len)
+                const unsigned char *tx_buf, size_t tx_len,
+                unsigned char *rx_buf, size_t *rx_len)
 {
        int rc;
        ct_handle *h = (ct_handle *) handle;
@@ -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;