[Pcsclite-cvs-commit] r2145 - trunk/PCSC/src

Ludovic Rousseau rousseau at costa.debian.org
Thu Aug 31 19:17:32 UTC 2006


Author: rousseau
Date: 2006-08-31 19:17:32 +0000 (Thu, 31 Aug 2006)
New Revision: 2145

Modified:
   trunk/PCSC/src/readerfactory.h
Log:
struct ReaderContext: use int32_t instead of DWORD for dwContexts since
we also use negative values (SCARD_EXCLUSIVE_CONTEXT defined as -1)

Thanks to -Wextra for the bug report


Modified: trunk/PCSC/src/readerfactory.h
===================================================================
--- trunk/PCSC/src/readerfactory.h	2006-08-31 19:08:47 UTC (rev 2144)
+++ trunk/PCSC/src/readerfactory.h	2006-08-31 19:17:32 UTC (rev 2145)
@@ -17,6 +17,8 @@
 #ifndef __readerfactory_h__
 #define __readerfactory_h__
 
+#include <inttypes.h>
+
 #include "thread_generic.h"
 #include "ifdhandler.h"
 
@@ -161,7 +163,7 @@
 		DWORD dwBlockStatus;	/* Current blocking status */
 		DWORD dwLockId;			/* Lock Id */
 		DWORD dwIdentity;		/* Shared ID High Nibble */
-		DWORD dwContexts;		/* Number of open contexts */
+		int32_t dwContexts;		/* Number of open contexts */
 		PDWORD pdwFeeds;		/* Number of shared client to lib */
 		PDWORD pdwMutex;		/* Number of client to mutex */
 




More information about the Pcsclite-cvs-commit mailing list