From 924866d48d0cf1638df3d3ba254f037baa2a661a Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 11 Nov 2014 21:28:16 +0100 Subject: [PATCH] uni tests: Use sr_dev_inst_channels_get() to fix the build. --- tests/lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lib.c b/tests/lib.c index cdaff771..69bf324b 100644 --- a/tests/lib.c +++ b/tests/lib.c @@ -149,7 +149,7 @@ GArray *srtest_get_enabled_logic_channels(const struct sr_dev_inst *sdi) GSList *l; channels = g_array_new(FALSE, FALSE, sizeof(int)); - for (l = sdi->channels; l; l = l->next) { + for (l = sr_dev_inst_channels_get(sdi); l; l = l->next) { ch = l->data; if (ch->type != SR_CHANNEL_LOGIC) continue;