[Pcsclite-cvs-commit] r4722 - in /trunk/PCSC/src: pcscdaemon.c winscard_svc.c winscard_svc.h

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Tue Feb 9 09:09:15 UTC 2010


Author: rousseau
Date: Tue Feb  9 09:09:13 2010
New Revision: 4722

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4722
Log:
use int instead of unsigned int for customMaxThreadCounter,
customMaxReaderHandles and customMaxThreadCardHandles since list_size()
returns an int and we compare the two values (avoid sign mismatch)

Modified:
    trunk/PCSC/src/pcscdaemon.c
    trunk/PCSC/src/winscard_svc.c
    trunk/PCSC/src/winscard_svc.h

Modified: trunk/PCSC/src/pcscdaemon.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/pcscdaemon.c?rev=4722&op=diff
==============================================================================
--- trunk/PCSC/src/pcscdaemon.c (original)
+++ trunk/PCSC/src/pcscdaemon.c Tue Feb  9 09:09:13 2010
@@ -188,9 +188,9 @@
 	char HotPlug;
 	char *newReaderConfig;
 	struct stat fStatBuf;
-	unsigned int customMaxThreadCounter = 0;
-	unsigned int customMaxReaderHandles = 0;
-	unsigned int customMaxThreadCardHandles = 0;
+	int customMaxThreadCounter = 0;
+	int customMaxReaderHandles = 0;
+	int customMaxThreadCardHandles = 0;
 	int opt;
 #ifdef HAVE_GETOPT_LONG
 	int option_index = 0;

Modified: trunk/PCSC/src/winscard_svc.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard_svc.c?rev=4722&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_svc.c (original)
+++ trunk/PCSC/src/winscard_svc.c Tue Feb  9 09:09:13 2010
@@ -90,7 +90,7 @@
 	return 0;
 }
 
-LONG ContextsInitialize(unsigned int customMaxThreadCounter, unsigned int customMaxThreadCardHandles)
+LONG ContextsInitialize(int customMaxThreadCounter, int customMaxThreadCardHandles)
 {
 	int lrv = 0;
 

Modified: trunk/PCSC/src/winscard_svc.h
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard_svc.h?rev=4722&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_svc.h (original)
+++ trunk/PCSC/src/winscard_svc.h Tue Feb  9 09:09:13 2010
@@ -24,7 +24,7 @@
 extern "C"
 {
 #endif
-	LONG ContextsInitialize(unsigned int, unsigned int);
+	LONG ContextsInitialize(int, int);
 	void ContextsDeinitialize(void);
 	LONG CreateContextThread(uint32_t *);
 	LONG MSGSignalClient(uint32_t filedes, LONG rv);




More information about the Pcsclite-cvs-commit mailing list