[Pcsclite-cvs-commit] Drivers/ccid/src utils.c,1.1.1.1,1.2 pcscdefines.h,1.1.1.1,1.2
rousseau@quantz.debian.org
rousseau@quantz.debian.org
Wed, 10 Sep 2003 10:52:31 +0200
Update of /cvsroot/pcsclite/Drivers/ccid/src
In directory quantz:/tmp/cvs-serv339/src
Modified Files:
utils.c pcscdefines.h
Log Message:
use PCSCLITE_MAX_READERS instead of PCSCLITE_MAX_CHANNELS
Index: utils.c
===================================================================
RCS file: /cvsroot/pcsclite/Drivers/ccid/src/utils.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- utils.c 12 Aug 2003 12:40:24 -0000 1.1.1.1
+++ utils.c 10 Sep 2003 08:52:29 -0000 1.2
@@ -24,11 +24,11 @@
#include "pcscdefines.h"
#include "utils.h"
-// Check if the Lun is not to large for the pgSlots table
-// returns TRUE in case of error
+/* Check if the Lun is not to large for the pgSlots table
+ * returns TRUE in case of error */
int CheckLun(DWORD Lun)
{
- if ((LunToReaderIndex(Lun) >= PCSCLITE_MAX_CHANNELS) ||
+ if ((LunToReaderIndex(Lun) >= PCSCLITE_MAX_READERS) ||
LunToReaderIndex(Lun) < 0)
return TRUE;
Index: pcscdefines.h
===================================================================
RCS file: /cvsroot/pcsclite/Drivers/ccid/src/pcscdefines.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- pcscdefines.h 12 Aug 2003 12:40:24 -0000 1.1.1.1
+++ pcscdefines.h 10 Sep 2003 08:52:29 -0000 1.2
@@ -31,7 +31,7 @@
typedef void VOID;
#endif
- // do not use RESPONSECODE (long, 64 bits) when 32 bits are enough
+ /* do not use RESPONSECODE (long, 64 bits) when 32 bits are enough */
typedef int ifd_t;
typedef enum {
@@ -43,7 +43,7 @@
#define MAX_RESPONSE_SIZE 264
#define MAX_ATR_SIZE 33
- #define PCSCLITE_MAX_CHANNELS 16 /* Maximum channels */
+ #define PCSCLITE_MAX_READERS 16 /* Maximum channels */
#ifdef __cplusplus
}
#endif