]> sigrok.org Git - libsigrok.git/commitdiff
uni tests: Use sr_dev_inst_channels_get() to fix the build.
authorUwe Hermann <redacted>
Tue, 11 Nov 2014 20:28:16 +0000 (21:28 +0100)
committerUwe Hermann <redacted>
Tue, 11 Nov 2014 20:28:16 +0000 (21:28 +0100)
tests/lib.c

index cdaff77126fb2dcc672d2833ffe8b63a65a62bf0..69bf324b09c11548423d9c6e08fc13f07197bc32 100644 (file)
@@ -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;