diff options
author | nicowallmeier <> | 2006-01-05 15:53:45 +0000 |
---|---|---|
committer | nicowallmeier <> | 2006-01-05 15:53:45 +0000 |
commit | 7c20dbb68758e212366f6ce0c6af114413bc3228 (patch) | |
tree | 2dbc86afaf2260f581b3dac22f2cbf71e12a61cb | |
parent | 5ea2a33ff46ee1c477a072bb20fc253c8eb99385 (diff) | |
download | lcd4linux-7c20dbb68758e212366f6ce0c6af114413bc3228.tar.gz |
[lcd4linux @ 2006-01-05 15:53:45 by nicowallmeier]
fixed compatility with gcc 2.95
Diffstat (limited to '')
-rw-r--r-- | drv_BWCT.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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++) { |