X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=tests%2Flib.c;h=69bf324b09c11548423d9c6e08fc13f07197bc32;hb=702f42e8eb33d8d1ffb5b748097428c0f4434c6d;hp=cdaff77126fb2dcc672d2833ffe8b63a65a62bf0;hpb=95bc7725949836f8fb9851a51fcc755b25e4fc6f;p=libsigrok.git 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;