[Pcsclite-cvs-commit] CVS Drivers/ccid/src
CVS User rousseau
ludovic.rousseau@free.fr
Thu, 07 Oct 2004 14:27:17 -0600
Update of /cvsroot/pcsclite/Drivers/ccid/src
In directory haydn:/tmp/cvs-serv10668
Modified Files:
parse.c
Log Message:
use lun instead of channel as first argument to get_desc() and use the
returned value to detect an error
--- /cvsroot/pcsclite/Drivers/ccid/src/parse.c 2004/10/06 12:01:29 1.21
+++ /cvsroot/pcsclite/Drivers/ccid/src/parse.c 2004/10/07 20:27:16 1.22
@@ -18,7 +18,7 @@
*/
/*
- * $Id: parse.c,v 1.21 2004/10/06 12:01:29 rousseau Exp $
+ * $Id: parse.c,v 1.22 2004/10/07 20:27:16 rousseau Exp $
*/
#include <stdio.h>
@@ -65,8 +65,10 @@
usb_dev_handle *handle;
struct usb_device *dev;
- get_desc(channel, &handle, &dev);
- res = ccid_parse_interface_descriptor(handle, dev);
+ if (get_desc(channel<<16, &handle, &dev))
+ res = ccid_parse_interface_descriptor(handle, dev);
+ else
+ fprintf(stderr, "Reader %d not found\n", channel);
}
}