]> sigrok.org Git - libsigrok.git/blobdiff - input/vcd.c
input: feed the filename to the module's init() function
[libsigrok.git] / input / vcd.c
index a9963f7e7682dc136575f785f9471f2e439b7d61..01dcdb10744447ba123bcd7cc0d1d645afd5ef24 100644 (file)
@@ -311,7 +311,7 @@ static int format_match(const char *filename)
        return status;
 }
 
-static int init(struct sr_input *in)
+static int init(struct sr_input *in, const char *filename)
 {
        struct sr_probe *probe;
        int num_probes, i;
@@ -319,6 +319,8 @@ static int init(struct sr_input *in)
        char *param;
        struct context *ctx;
 
+       (void)filename;
+
        if (!(ctx = g_try_malloc0(sizeof(*ctx)))) {
                sr_err("Input format context malloc failed.");
                return SR_ERR_MALLOC;