[Pcsclite-cvs-commit] r5870 - /trunk/Drivers/ccid/src/ccid_usb.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Sat Jul 9 12:14:30 UTC 2011


Author: rousseau
Date: Sat Jul  9 12:14:29 2011
New Revision: 5870

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5870
Log:
Fix compiler warning

ccid_usb.c: In function `OpenUSBByName':
ccid_usb.c:245:2: warning: format `%s' expects argument of type `char
*', but argument 6 has type `void *' [-Wformat]
ccid_usb.c:246:2: warning: format `%s' expects argument of type `char
*', but argument 6 has type `void *' [-Wformat]
ccid_usb.c:247:2: warning: format `%s' expects argument of type `char
*', but argument 6 has type `void *' [-Wformat]

Modified:
    trunk/Drivers/ccid/src/ccid_usb.c

Modified: trunk/Drivers/ccid/src/ccid_usb.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/ccid_usb.c?rev=5870&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/ccid_usb.c (original)
+++ trunk/Drivers/ccid/src/ccid_usb.c Sat Jul  9 12:14:29 2011
@@ -239,7 +239,7 @@
 		return STATUS_UNSUCCESSFUL; \
 	} \
 	else \
-		DEBUG_INFO2(key ": %s", list_get_at(values, 0));
+		DEBUG_INFO2(key ": %s", (char *)list_get_at(values, 0));
 
 	/* general driver info */
 	GET_KEY("ifdManufacturerString", values)




More information about the Pcsclite-cvs-commit mailing list