[Pcsclite-cvs-commit] r5113 - /trunk/PCSC/src/ifdwrapper.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Thu Aug 5 07:51:28 UTC 2010


Author: rousseau
Date: Thu Aug  5 07:51:25 2010
New Revision: 5113

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5113
Log:
Fix compilation warnings
ifdwrapper.c:166:7: warning: "IFDHANDLERv2" is not defined
ifdwrapper.c:589:7: warning: "IFDHANDLERv2" is not defined
ifdwrapper.c:640:7: warning: "IFDHANDLERv3" is not defined

Modified:
    trunk/PCSC/src/ifdwrapper.c

Modified: trunk/PCSC/src/ifdwrapper.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/ifdwrapper.c?rev=5113&op=diff
==============================================================================
--- trunk/PCSC/src/ifdwrapper.c (original)
+++ trunk/PCSC/src/ifdwrapper.c Thu Aug  5 07:51:25 2010
@@ -163,7 +163,7 @@
 #else
 #ifdef IFDHANDLERv1
 	rv = IO_Create_Channel(rContext->port);
-#elif IFDHANDLERv2
+#elif defined(IFDHANDLERv2)
 	rv = IFDHCreateChannel(rContext->slot, rContext->port);
 #else
 	{
@@ -586,7 +586,7 @@
 #ifndef PCSCLITE_STATIC_DRIVER
 	rv = (*IFDH_control_v2) (rContext->slot, TxBuffer, TxLength,
 		RxBuffer, RxLength);
-#elif IFDHANDLERv2
+#elif defined(IFDHANDLERv2)
 	rv = IFDHControl(rContext->slot, TxBuffer, TxLength,
 		RxBuffer, RxLength);
 #endif
@@ -637,7 +637,7 @@
 #ifndef PCSCLITE_STATIC_DRIVER
 	rv = (*IFDH_control) (rContext->slot, ControlCode, TxBuffer,
 		TxLength, RxBuffer, RxLength, BytesReturned);
-#elif IFDHANDLERv3
+#elif defined(IFDHANDLERv3)
 	rv = IFDHControl(rContext->slot, ControlCode, TxBuffer,
 		TxLength, RxBuffer, RxLength, BytesReturned);
 #endif




More information about the Pcsclite-cvs-commit mailing list