FreeBSD buildfix
Fix an unused variable warning seen when building the parport driver under FreeBSD. Using information from Xiaofan Chen <xiaofanc@gmail.com> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
This commit is contained in:
parent
3f30563c88
commit
d2a2c14d20
|
@ -265,7 +265,6 @@ static int parport_init(void)
|
||||||
struct cable *cur_cable;
|
struct cable *cur_cable;
|
||||||
#if PARPORT_USE_PPDEV == 1
|
#if PARPORT_USE_PPDEV == 1
|
||||||
char buffer[256];
|
char buffer[256];
|
||||||
int i = 0;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
cur_cable = cables;
|
cur_cable = cables;
|
||||||
|
@ -323,7 +322,8 @@ static int parport_init(void)
|
||||||
LOG_DEBUG("...open");
|
LOG_DEBUG("...open");
|
||||||
|
|
||||||
#if !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__)
|
#if !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__)
|
||||||
i = ioctl(device_handle, PPCLAIM);
|
int i = ioctl(device_handle, PPCLAIM);
|
||||||
|
|
||||||
if (i < 0)
|
if (i < 0)
|
||||||
{
|
{
|
||||||
LOG_ERROR("cannot claim device");
|
LOG_ERROR("cannot claim device");
|
||||||
|
|
Loading…
Reference in New Issue