summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2005-10-29 20:51:19 +0000
committerlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2005-10-29 20:51:19 +0000
commitde9b76dc8a93189312c1438fd4c9925ce2685f8e (patch)
tree0716dea7cfe40648686a6f16eaf9897ea3619eba
parentcf4cccb614340081eb690ca19676477794ee5b9c (diff)
fix usage of handle
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1598 e0336214-984f-0b4b-a45f-81c69e1f0ede
-rw-r--r--rfid_reader_cm5121_ccid_direct.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/rfid_reader_cm5121_ccid_direct.c b/rfid_reader_cm5121_ccid_direct.c
index a88bd0b..7f53bb7 100644
--- a/rfid_reader_cm5121_ccid_direct.c
+++ b/rfid_reader_cm5121_ccid_direct.c
@@ -7,9 +7,6 @@
#include "ccid/ccid-driver.h"
-/* FIXME: remove ugly global variables */
-static ccid_driver_t h;
-
/* this is the sole function required by rfid_reader_cm5121.c */
int
PC_to_RDR_Escape(void *handle,
@@ -30,11 +27,10 @@ int cm5121_source_init(struct rfid_asic_transport_handle *rath)
{
int rc;
- rc = ccid_open_reader (&h, NULL);
+ rc = ccid_open_reader(&rath->data, NULL);
if (rc) {
fprintf (stderr, "failed to open CCID reader: %#x\n", rc);
return -1;
}
- rath->data = &h;
return 0;
}
personal git repositories of Harald Welte. Your mileage may vary