summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2015-03-30 01:31:11 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2015-03-30 01:31:11 +0200
commit25a196ad5fbc912db87c627b7fb1c658008fd17d (patch)
tree23a605e18ed8e93460c55774b567e7b063efe8c1
parentad2dbcd0c3b7f9f277c1fd55eb7a9a1faa70d89b (diff)
downloadsigrok-test-25a196ad5fbc912db87c627b7fb1c658008fd17d.tar.gz
sigrok-test-25a196ad5fbc912db87c627b7fb1c658008fd17d.zip
Update due to sr_session_load() API change.
-rw-r--r--decoder/runtc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder/runtc.c b/decoder/runtc.c
index 2193309..5577029 100644
--- a/decoder/runtc.c
+++ b/decoder/runtc.c
@@ -40,6 +40,7 @@
int debug = FALSE;
int statistics = FALSE;
char *coverage_report;
+struct sr_context *ctx;
struct channel {
char *name;
@@ -354,7 +355,7 @@ static int run_testcase(char *infile, GSList *pdlist, struct output *op)
}
}
- if (sr_session_load(infile, &sr_sess) != SR_OK)
+ if (sr_session_load(ctx, infile, &sr_sess) != SR_OK)
return FALSE;
sr_session_dev_list(sr_sess, &devices);
@@ -709,7 +710,6 @@ static int report_coverage(PyObject *py_cov, GSList *pdlist)
int main(int argc, char **argv)
{
- struct sr_context *ctx;
PyObject *coverage;
GSList *pdlist;
struct pd *pd;