[Pcsclite-cvs-commit] r5908 - /trunk/Drivers/ccid/src/ccid_serial.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Wed Aug 24 09:16:36 UTC 2011


Author: rousseau
Date: Wed Aug 24 09:16:36 2011
New Revision: 5908

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5908
Log:
OpenSerial(): remove useless casts

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

Modified: trunk/Drivers/ccid/src/ccid_serial.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/ccid_serial.c?rev=5908&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/ccid_serial.c (original)
+++ trunk/Drivers/ccid/src/ccid_serial.c Wed Aug 24 09:16:36 2011
@@ -490,11 +490,11 @@
 
 	if (channel < 0)
 	{
-		DEBUG_CRITICAL2("wrong port number: %d", (int) channel);
+		DEBUG_CRITICAL2("wrong port number: %d", channel);
 		return STATUS_UNSUCCESSFUL;
 	}
 
-	(void)snprintf(dev_name, sizeof(dev_name), "/dev/pcsc/%d", (int) channel);
+	(void)snprintf(dev_name, sizeof(dev_name), "/dev/pcsc/%d", channel);
 
 	return OpenSerialByName(reader_index, dev_name);
 } /* OpenSerial */




More information about the Pcsclite-cvs-commit mailing list