[Pcsclite-cvs-commit] r2121 - trunk/Drivers/ccid/src

Ludovic Rousseau rousseau at costa.debian.org
Thu Aug 3 13:12:21 UTC 2006


Author: rousseau
Date: 2006-08-03 13:12:20 +0000 (Thu, 03 Aug 2006)
New Revision: 2121

Modified:
   trunk/Drivers/ccid/src/utils.c
   trunk/Drivers/ccid/src/utils.h
Log:
change the prototype of ReleaseReaderIndex() to return void since he
function always returned 0 and the returned value was never checked


Modified: trunk/Drivers/ccid/src/utils.c
===================================================================
--- trunk/Drivers/ccid/src/utils.c	2006-08-03 10:04:01 UTC (rev 2120)
+++ trunk/Drivers/ccid/src/utils.c	2006-08-03 13:12:20 UTC (rev 2121)
@@ -66,10 +66,8 @@
 	return -1;
 } /* LunToReaderIndex */
 
-int ReleaseReaderIndex(const int index)
+void ReleaseReaderIndex(const int index)
 {
 	ReaderIndex[index] = -1;
-
-	return 0;
 } /* ReleaseReaderIndex */
 

Modified: trunk/Drivers/ccid/src/utils.h
===================================================================
--- trunk/Drivers/ccid/src/utils.h	2006-08-03 10:04:01 UTC (rev 2120)
+++ trunk/Drivers/ccid/src/utils.h	2006-08-03 13:12:20 UTC (rev 2121)
@@ -29,5 +29,5 @@
 void InitReaderIndex(void);
 int GetNewReaderIndex(const DWORD Lun);
 int LunToReaderIndex(DWORD Lun);
-int ReleaseReaderIndex(const int index);
+void ReleaseReaderIndex(const int index);
 




More information about the Pcsclite-cvs-commit mailing list