[Pcsclite-cvs-commit] r4749 - /trunk/Drivers/ccid/src/commands.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Tue Feb 9 21:29:06 UTC 2010
Author: rousseau
Date: Tue Feb 9 21:29:05 2010
New Revision: 4749
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4749
Log:
Fix 2 compiler warnings
commands.c: In function ‘CCID_Transmit’:
commands.c:1107: warning: passing argument 5 of ‘ControlUSB’ discards qualifiers from pointer target type
ccid_usb.h:43: note: expected ‘unsigned char *’ but argument is of type ‘const unsigned char *’
commands.c:1130: warning: passing argument 5 of ‘ControlUSB’ discards qualifiers from pointer target type
ccid_usb.h:43: note: expected ‘unsigned char *’ but argument is of type ‘const unsigned char *’
Modified:
trunk/Drivers/ccid/src/commands.c
Modified: trunk/Drivers/ccid/src/commands.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/commands.c?rev=4749&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/commands.c (original)
+++ trunk/Drivers/ccid/src/commands.c Tue Feb 9 21:29:05 2010
@@ -1104,7 +1104,8 @@
int r;
/* Xfr Block */
- r = ControlUSB(reader_index, 0x21, 0x65, 0, tx_buffer, tx_length);
+ r = ControlUSB(reader_index, 0x21, 0x65, 0,
+ (unsigned char *)tx_buffer, tx_length);
/* we got an error? */
if (r < 0)
@@ -1126,8 +1127,8 @@
/* Xfr Block */
DEBUG_COMM2("chain parameter: %d", rx_length);
- r = ControlUSB(reader_index, 0x21, 0x65, rx_length << 8, tx_buffer,
- tx_length);
+ r = ControlUSB(reader_index, 0x21, 0x65, rx_length << 8,
+ (unsigned char *)tx_buffer, tx_length);
/* we got an error? */
if (r < 0)
More information about the Pcsclite-cvs-commit
mailing list