X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=input.c;h=d2adde6998b7d4d396e314bf42dd0b5f67bc87f7;hp=b293ddd908c6bc341c30e19d4fb8bdc3f61dfb7f;hb=7a638873128dedfcad1e77d87c3d2c25516abaf2;hpb=e1ec80fab866118c0403c81bbc7fcc4ae0818fb1 diff --git a/input.c b/input.c index b293ddd..d2adde6 100644 --- a/input.c +++ b/input.c @@ -25,11 +25,6 @@ #include #include -extern gchar *opt_input_file; -extern gchar *opt_input_format; -extern gchar *opt_probes; - - /** * Return the input file format which the CLI tool should use. * @@ -131,7 +126,7 @@ static void load_input_file_format(void) } } - if (select_probes(in->sdi) > 0) + if (select_channels(in->sdi) != SR_OK) return; sr_session_new(); @@ -165,7 +160,7 @@ void load_input_file(void) return; } sdi = sessions->data; - if (select_probes(sdi) != SR_OK) { + if (select_channels(sdi) != SR_OK) { sr_session_destroy(); return; }