[Pcsclite-cvs-commit] r1970 - trunk/PCSC/src

Ludovic Rousseau rousseau at costa.debian.org
Thu Mar 23 13:56:56 CET 2006


Author: rousseau
Date: 2006-03-23 12:56:54 +0000 (Thu, 23 Mar 2006)
New Revision: 1970

Modified:
   trunk/PCSC/src/hotplug_libusb.c
Log:
HPAddHotPluggable(): add the USB serial number only if ADD_SERIAL_NUMBER
is defined (default).
just #undef the macro if you do not like the serial number addition.


Modified: trunk/PCSC/src/hotplug_libusb.c
===================================================================
--- trunk/PCSC/src/hotplug_libusb.c	2006-03-21 21:06:54 UTC (rev 1969)
+++ trunk/PCSC/src/hotplug_libusb.c	2006-03-23 12:56:54 UTC (rev 1970)
@@ -39,6 +39,7 @@
 #include "hotplug.h"
 
 #undef DEBUG_HOTPLUG
+#define ADD_SERIAL_NUMBER
 
 #define BUS_DEVICE_STRSIZE	256
 
@@ -429,6 +430,7 @@
    
 	readerTracker[i].driver = driver;
 
+#ifdef ADD_SERIAL_NUMBER
 	if (dev->descriptor.iSerialNumber)
 	{
 		usb_dev_handle *device;
@@ -445,6 +447,7 @@
 		readerTracker[i].fullName = strdup(fullname);
 	}
 	else
+#endif
 		readerTracker[i].fullName = strdup(driver->readerName);
 
 	if (RFAddReader(readerTracker[i].fullName, PCSCLITE_HP_BASE_PORT + i,




More information about the Pcsclite-cvs-commit mailing list