olimex_iso: fix compiler warnings on non-Linux systems.

This commit is contained in:
Daniel Beer 2012-03-02 14:13:49 +13:00
parent 902c2903c3
commit e79d102937
1 changed files with 2 additions and 0 deletions

View File

@ -107,8 +107,10 @@ int configure_ftdi(struct usb_dev_handle *handle)
static int open_device(struct iso_transport *tr, struct usb_device *dev)
{
#ifdef __linux__
int driver;
char drv_name[128];
#endif
printc_dbg("olimex_iso: trying to open %s\n", dev->filename);
tr->handle = usb_open(dev);