From a94d1b26fbe943ede97eb29f117c7930a4a2bc8a Mon Sep 17 00:00:00 2001 From: jey Date: Fri, 14 Jun 2002 11:43:22 +0000 Subject: [PATCH] - Fix for last commit. It now compiles, at least. git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@650 c6295689-39f2-0310-b995-f0e70906c6a9 --- src/libopensc/reader-pcsc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libopensc/reader-pcsc.c b/src/libopensc/reader-pcsc.c index 6696f027..f6bc09b8 100644 --- a/src/libopensc/reader-pcsc.c +++ b/src/libopensc/reader-pcsc.c @@ -106,6 +106,7 @@ static int pcsc_transmit(struct sc_reader *reader, struct sc_slot_info *slot, LONG rv; SCARDHANDLE card; struct pcsc_slot_data *pslot = GET_SLOT_DATA(slot); + struct pcsc_private_data *prv = GET_PRIV_DATA(reader); assert(pslot != NULL); card = pslot->pcsc_card; @@ -115,7 +116,7 @@ static int pcsc_transmit(struct sc_reader *reader, struct sc_slot_info *slot, sRecvPci.dwProtocol = opensc_proto_to_pcsc(slot->active_protocol); sRecvPci.cbPciLength = 0; - if (reader->gpriv->apdu_fix && sendsize >= 6) { + if (prv->gpriv->apdu_fix && sendsize >= 6) { /* Check if the APDU in question is of Case 4 */ const u8 *p = sendbuf; int lc; @@ -308,10 +309,9 @@ static int pcsc_init(struct sc_context *ctx, void **reader_data) char *reader_buf, *p; LPCSTR mszGroups = NULL; SCARDCONTEXT pcsc_ctx; - int r; + int r, i, apdu_fix; struct pcsc_global_private_data *gpriv; scconf_block **blocks = NULL, *conf_block = NULL; - int apdu_fix; rv = SCardEstablishContext(SCARD_SCOPE_GLOBAL, "localhost", NULL, &pcsc_ctx);