[Pcsclite-cvs-commit] r5824 - /trunk/PCSC/src/testpcsc.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Tue Jul 5 20:36:54 UTC 2011
Author: rousseau
Date: Tue Jul 5 20:36:53 2011
New Revision: 5824
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5824
Log:
Use pointers for pioRecvPci and pioSendPci to better match with the
variable names
Modified:
trunk/PCSC/src/testpcsc.c
Modified: trunk/PCSC/src/testpcsc.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/testpcsc.c?rev=5824&op=diff
==============================================================================
--- trunk/PCSC/src/testpcsc.c (original)
+++ trunk/PCSC/src/testpcsc.c Tue Jul 5 20:36:53 2011
@@ -79,8 +79,8 @@
DWORD i;
int p, iReader;
int iList[16];
- SCARD_IO_REQUEST pioRecvPci;
- SCARD_IO_REQUEST pioSendPci;
+ SCARD_IO_REQUEST *pioRecvPci;
+ SCARD_IO_REQUEST *pioSendPci;
unsigned char bSendBuffer[MAX_BUFFER_SIZE];
unsigned char bRecvBuffer[MAX_BUFFER_SIZE];
DWORD send_length, length;
@@ -219,13 +219,13 @@
switch(dwPref)
{
case SCARD_PROTOCOL_T0:
- pioSendPci = *SCARD_PCI_T0;
+ pioSendPci = SCARD_PCI_T0;
break;
case SCARD_PROTOCOL_T1:
- pioSendPci = *SCARD_PCI_T1;
+ pioSendPci = SCARD_PCI_T1;
break;
case SCARD_PROTOCOL_RAW:
- pioSendPci = *SCARD_PCI_RAW;
+ pioSendPci = SCARD_PCI_RAW;
break;
default:
printf("Unknown protocol\n");
@@ -242,8 +242,8 @@
length = sizeof(bRecvBuffer);
printf("Testing SCardTransmit\t\t: ");
- rv = SCardTransmit(hCard, &pioSendPci, bSendBuffer, send_length,
- &pioRecvPci, bRecvBuffer, &length);
+ rv = SCardTransmit(hCard, pioSendPci, bSendBuffer, send_length,
+ pioRecvPci, bRecvBuffer, &length);
test_rv(rv, hContext, PANIC);
printf(" card response:" GREEN);
for (i=0; i<length; i++)
More information about the Pcsclite-cvs-commit
mailing list