X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Foutput%2Fcsv.c;h=59dcf08cd8b3357ec8e7a6b2703272365e6c3f46;hb=e66d1892d0dd16ed166fc8f13493f95de0607362;hp=831208dc6bf367f40a7d088cb7b4360dd56b0076;hpb=10892c5b8aa54bee29e908ab457180ca8cdb1011;p=libsigrok.git diff --git a/src/output/csv.c b/src/output/csv.c index 831208dc..59dcf08c 100644 --- a/src/output/csv.c +++ b/src/output/csv.c @@ -260,7 +260,7 @@ static GString *gen_header(const struct sr_output *o, g_string_append_printf(header, "%s Channels (%d/%d):", ctx->comment, ctx->num_analog_channels + ctx->num_logic_channels, num_channels); - for (i = 0, l = o->sdi->channels; l; l = l->next, i++) { + for (l = o->sdi->channels; l; l = l->next) { ch = l->data; if (ch->enabled) g_string_append_printf(header, " %s,", ch->name); @@ -578,7 +578,7 @@ static int receive(const struct sr_output *o, break; case SR_DF_FRAME_BEGIN: *out = g_string_new(ctx->frame); - /* And then fall through to... */ + /* Fallthrough */ case SR_DF_END: /* Got to end of frame/session with part of the data. */ if (ctx->channels_seen)