Make all sizeof() consistently use parenthesis.
This commit is contained in:
parent
09ffac33b7
commit
b3cfc6e98e
|
@ -264,7 +264,7 @@ static int drain_usb(struct sr_usb_dev_inst *usb, unsigned int endpoint)
|
|||
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);
|
||||
|
|
|
@ -278,7 +278,7 @@ SR_API int sr_session_load(struct sr_context *ctx, const char *filename,
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue