[Pcsclite-cvs-commit] r7081 - trunk/Drivers/ccid/src

ludovic.rousseau at free.fr ludovic.rousseau at free.fr
Sat Jan 10 11:49:00 UTC 2015


Author: rousseau
Date: 2015-01-10 11:48:59 +0000 (Sat, 10 Jan 2015)
New Revision: 7081

Modified:
   trunk/Drivers/ccid/src/ifdhandler.c
Log:
IFDHSleep(): timout parameter is in ms not ?\194?\181s

We convert timeout in ms in the correct value for usleep(3) that takes
a parameter in ?\194?\181s.

Thanks to Alan Kozlay for the bug report


Modified: trunk/Drivers/ccid/src/ifdhandler.c
===================================================================
--- trunk/Drivers/ccid/src/ifdhandler.c	2015-01-09 17:21:03 UTC (rev 7080)
+++ trunk/Drivers/ccid/src/ifdhandler.c	2015-01-10 11:48:59 UTC (rev 7081)
@@ -325,7 +325,7 @@
 	 * TAG_IFD_POLLING_THREAD_KILLABLE then we could use a much longer delay
 	 * and be killed before pcscd exits
 	 */
-	(void)usleep(timeout);
+	(void)usleep(timeout * 1000);
 	return IFD_SUCCESS;
 }
 




More information about the Pcsclite-cvs-commit mailing list