From e344d6c788a59a77119b99db41f2699a2d72b75f Mon Sep 17 00:00:00 2001 From: nicowallmeier Date: Thu, 5 Jan 2006 15:53:45 +0000 Subject: [lcd4linux @ 2006-01-05 15:53:45 by nicowallmeier] fixed compatility with gcc 2.95 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@607 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- drv_BWCT.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'drv_BWCT.c') diff --git a/drv_BWCT.c b/drv_BWCT.c index 489a54e..77207bb 100644 --- a/drv_BWCT.c +++ b/drv_BWCT.c @@ -1,4 +1,4 @@ -/* $Id: drv_BWCT.c,v 1.4 2005/12/11 14:55:28 reinelt Exp $ +/* $Id: drv_BWCT.c,v 1.5 2006/01/05 15:53:45 nicowallmeier Exp $ * * new style driver for BWCT USB LCD displays * @@ -23,6 +23,9 @@ * * * $Log: drv_BWCT.c,v $ + * Revision 1.5 2006/01/05 15:53:45 nicowallmeier + * fixed compatility with gcc 2.95 + * * Revision 1.4 2005/12/11 14:55:28 reinelt * contrast range for BWCT is 0..255, not 0..100 * @@ -111,10 +114,10 @@ static int drv_BW_open(void) for (bus = busses; bus; bus = bus->next) { for (dev = bus->devices; dev; dev = dev->next) { + int c; if (dev->descriptor.idVendor != LCD_USB_VENDOR) continue; /* Loop through all of the configurations */ - int c; for (c = 0; c < dev->descriptor.bNumConfigurations; c++) { int i; for (i = 0; i < dev->config[c].bNumInterfaces; i++) { -- cgit v1.2.3