From de9b76dc8a93189312c1438fd4c9925ce2685f8e Mon Sep 17 00:00:00 2001 From: laforge Date: Sat, 29 Oct 2005 20:51:19 +0000 Subject: fix usage of handle git-svn-id: https://svn.gnumonks.org/trunk/librfid@1598 e0336214-984f-0b4b-a45f-81c69e1f0ede --- rfid_reader_cm5121_ccid_direct.c | 6 +----- 1 file changed, 1 insertion(+), 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; } -- cgit v1.2.3