]> sigrok.org Git - libsigrok.git/blobdiff - hardware/saleae-logic16/api.c
saleae-logic16: Minor whitespace fixes, cosmetics.
[libsigrok.git] / hardware / saleae-logic16 / api.c
index 130c579744e14196b1968b205a8d6e540e73fe63..388d95a53c20b5f3c05313ae923351425e97543b 100644 (file)
@@ -627,6 +627,9 @@ static int configure_channels(const struct sr_dev_inst *sdi)
        struct sr_channel *ch;
        GSList *l;
        uint16_t channel_bit;
+#ifdef WORDS_BIGENDIAN
+       int i;
+#endif
 
        devc = sdi->priv;
 
@@ -657,8 +660,7 @@ static int configure_channels(const struct sr_dev_inst *sdi)
                devc->unitsize = 2;
        } else {
 #ifdef WORDS_BIGENDIAN
-               int i;
-               for (i=0; i<devc->num_channels; i++)
+               for (i = 0; i < devc->num_channels; i++)
                        devc->channel_masks[i] >>= 8;
 #endif
                devc->unitsize = 1;