[Pcsclite-cvs-commit] r2428 - trunk/Drivers/ccid/src
Ludovic Rousseau
rousseau at alioth.debian.org
Fri Feb 23 18:01:25 CET 2007
Author: rousseau
Date: 2007-02-23 18:01:25 +0100 (Fri, 23 Feb 2007)
New Revision: 2428
Modified:
trunk/Drivers/ccid/src/parse.c
Log:
do not declare another buffer variable to avoid: declaration of ?\226?\128?\152buffer?\226?\128?\153
shadows a previous local
Modified: trunk/Drivers/ccid/src/parse.c
===================================================================
--- trunk/Drivers/ccid/src/parse.c 2007-02-23 16:49:50 UTC (rev 2427)
+++ trunk/Drivers/ccid/src/parse.c 2007-02-23 17:01:25 UTC (rev 2428)
@@ -126,7 +126,7 @@
{
struct usb_interface_descriptor *usb_interface;
unsigned char *extra;
- char buffer[255];
+ char buffer[256*sizeof(int)]; /* maximum is 256 records */
/*
* Vendor/model name
@@ -272,7 +272,6 @@
printf(" bNumClockSupported: %d %s\n", extra[18],
extra[18] ? "" : "(will use whatever is returned)");
{
- unsigned char buffer[256*sizeof(int)]; /* maximum is 256 records */
int n;
/* See CCID 3.7.2 page 25 */
@@ -281,7 +280,7 @@
0x02, /* GET CLOCK FREQUENCIES */
0x00, /* value */
usb_interface->bInterfaceNumber, /* interface */
- (char *)buffer,
+ buffer,
sizeof(buffer),
2 * 1000);
@@ -315,7 +314,6 @@
printf(" bNumDataRatesSupported: %d %s\n", extra[27],
extra[27] ? "" : "(will use whatever is returned)");
{
- unsigned char buffer[256*sizeof(int)]; /* maximum is 256 records */
int n;
/* See CCID 3.7.3 page 25 */
@@ -324,7 +322,7 @@
0x03, /* GET DATA RATES */
0x00, /* value */
usb_interface->bInterfaceNumber, /* interface */
- (char *)buffer,
+ buffer,
sizeof(buffer),
2 * 1000);
More information about the Pcsclite-cvs-commit
mailing list