From: Uwe Hermann Date: Tue, 11 Nov 2014 20:28:16 +0000 (+0100) Subject: uni tests: Use sr_dev_inst_channels_get() to fix the build. X-Git-Tag: libsigrok-0.4.0~806 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=924866d48d0cf1638df3d3ba254f037baa2a661a uni tests: Use sr_dev_inst_channels_get() to fix the build. --- 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;