struct sr_channel *ch;
GSList *l;
uint16_t channel_bit;
+#ifdef WORDS_BIGENDIAN
+ int i;
+#endif
devc = sdi->priv;
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;
const uint8_t *src, size_t srccnt,
int unitsize)
{
- return (unitsize == 2?
+ return (unitsize == 2 ?
convert_sample_data_16(devc, dest, destcnt, src, srccnt) :
convert_sample_data_8(devc, dest, destcnt, src, srccnt));
}
transfer->actual_length, devc->unitsize);
if (converted_length > 0) {
- /* Cap sample count if needed */
+ /* Cap sample count if needed. */
if (devc->limit_samples &&
(uint64_t)devc->num_samples + converted_length
> devc->limit_samples) {