From: Uwe Hermann Date: Tue, 31 Mar 2015 20:58:50 +0000 (+0200) Subject: Fix a typo in a for loop (wrong variable). X-Git-Tag: libsigrok-0.4.0~551 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=2cca921d919cba518dd1e281be678b77f6b8b6df Fix a typo in a for loop (wrong variable). --- diff --git a/src/hardware/saleae-logic16/api.c b/src/hardware/saleae-logic16/api.c index 55e3d752..868348c5 100644 --- a/src/hardware/saleae-logic16/api.c +++ b/src/hardware/saleae-logic16/api.c @@ -147,8 +147,8 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options) GSList *l, *devices, *conn_devices; struct libusb_device_descriptor des; libusb_device **devlist; - int ret, j; - unsigned int i; + int ret; + unsigned int i, j; const char *conn; char connection_id[64]; @@ -204,7 +204,7 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options) sdi->driver = di; sdi->connection_id = g_strdup(connection_id); - for (j = 0; i < ARRAY_SIZE(channel_names); j++) + for (j = 0; j < ARRAY_SIZE(channel_names); j++) sr_channel_new(sdi, j, SR_CHANNEL_LOGIC, TRUE, channel_names[j]);