do {
xfer_len = 0;
ret = libusb_bulk_transfer(usb->devhdl, endpoint,
- buf, sizeof buf, &xfer_len,
+ buf, sizeof(buf), &xfer_len,
drain_timeout_ms);
drained += xfer_len;
} while (ret == LIBUSB_SUCCESS && xfer_len != 0);
sr_config_set(sdi, NULL, SR_CONF_NUM_LOGIC_CHANNELS,
g_variant_new_int32(total_channels));
for (k = 0; k < total_channels; k++) {
- g_snprintf(channelname, sizeof channelname,
+ g_snprintf(channelname, sizeof(channelname),
"%d", k);
sr_channel_new(sdi, k, SR_CHANNEL_LOGIC,
FALSE, channelname);