X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Finput%2Fvcd.c;h=e6bc05e5a6b18130524f7b8d11d85ece2ca054f1;hb=9d9cf1c4b902c4556ba32d6f6c5566b48f3d1515;hp=96bd6335b0b3f67083ee668b0f828031d69fd803;hpb=7066fd466038bb4a8d09751f8a53c2452c5fefc1;p=libsigrok.git diff --git a/src/input/vcd.c b/src/input/vcd.c index 96bd6335..e6bc05e5 100644 --- a/src/input/vcd.c +++ b/src/input/vcd.c @@ -429,7 +429,7 @@ static int init(struct sr_input *in, GHashTable *options) inc->skip = g_variant_get_int32(g_hash_table_lookup(options, "skip")); inc->skip /= inc->downsample; - in->sdi = sr_dev_inst_new(SR_ST_ACTIVE, NULL, NULL, NULL); + in->sdi = sr_dev_inst_new(); in->priv = inc; for (i = 0; i < num_channels; i++) { @@ -537,14 +537,12 @@ static int end(struct sr_input *in) return ret; } -static int cleanup(struct sr_input *in) +static void cleanup(struct sr_input *in) { struct context *inc; inc = in->priv; g_slist_free_full(inc->channels, free_channel); - - return SR_OK; } static struct sr_option options[] = {