[Pcsclite-cvs-commit] r5403 - /trunk/Drivers/ccid/src/parse.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Wed Nov 17 13:05:57 UTC 2010
Author: rousseau
Date: Wed Nov 17 13:05:55 2010
New Revision: 5403
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5403
Log:
define DISPLAY_EXTRA_VALUES to display the extra (invalid) values
returned by bNumClockSupported and bNumDataRatesSupported
Modified:
trunk/Drivers/ccid/src/parse.c
Modified: trunk/Drivers/ccid/src/parse.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/parse.c?rev=5403&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/parse.c (original)
+++ trunk/Drivers/ccid/src/parse.c Wed Nov 17 13:05:55 2010
@@ -30,6 +30,10 @@
#include "defs.h"
#include "ccid.h"
+
+/* define DISPLAY_EXTRA_VALUES to display the extra (invalid) values
+ * returned by bNumClockSupported and bNumDataRatesSupported */
+#undef DISPLAY_EXTRA_VALUES
#ifndef TRUE
#define TRUE 1
@@ -433,8 +437,10 @@
n/4, extra[18]);
/* we got more data than expected */
+#ifndef DISPLAY_EXTRA_VALUES
if (n > extra[18]*4)
n = extra[18]*4;
+#endif
}
for (i=0; i<n; i+=4)
@@ -476,8 +482,10 @@
extra[27]);
/* we got more data than expected */
+#ifndef DISPLAY_EXTRA_VALUES
if (n > extra[27]*4)
n = extra[27]*4;
+#endif
}
for (i=0; i<n; i+=4)
More information about the Pcsclite-cvs-commit
mailing list