Make all sizeof() consistently use parenthesis.

This commit is contained in:
Uwe Hermann 2015-11-29 00:23:53 +01:00
parent 09ffac33b7
commit b3cfc6e98e
2 changed files with 2 additions and 2 deletions

View File

@ -264,7 +264,7 @@ static int drain_usb(struct sr_usb_dev_inst *usb, unsigned int endpoint)
do { do {
xfer_len = 0; xfer_len = 0;
ret = libusb_bulk_transfer(usb->devhdl, endpoint, ret = libusb_bulk_transfer(usb->devhdl, endpoint,
buf, sizeof buf, &xfer_len, buf, sizeof(buf), &xfer_len,
drain_timeout_ms); drain_timeout_ms);
drained += xfer_len; drained += xfer_len;
} while (ret == LIBUSB_SUCCESS && xfer_len != 0); } while (ret == LIBUSB_SUCCESS && xfer_len != 0);

View File

@ -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, sr_config_set(sdi, NULL, SR_CONF_NUM_LOGIC_CHANNELS,
g_variant_new_int32(total_channels)); g_variant_new_int32(total_channels));
for (k = 0; k < total_channels; k++) { for (k = 0; k < total_channels; k++) {
g_snprintf(channelname, sizeof channelname, g_snprintf(channelname, sizeof(channelname),
"%d", k); "%d", k);
sr_channel_new(sdi, k, SR_CHANNEL_LOGIC, sr_channel_new(sdi, k, SR_CHANNEL_LOGIC,
FALSE, channelname); FALSE, channelname);