X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=tests%2Fcheck_output_all.c;h=1eadea193badd624b24c0db575ba4e8592512d20;hb=bce75f947dfc35eb67caa90f3c8dc9f20bdc36cb;hp=aa8a2fe205fecf05eda1e7cc3eb77ca7aafcddf4;hpb=a755b0e122105d934c4e7b97435420eda6df6e8e;p=libsigrok.git diff --git a/tests/check_output_all.c b/tests/check_output_all.c index aa8a2fe2..1eadea19 100644 --- a/tests/check_output_all.c +++ b/tests/check_output_all.c @@ -88,11 +88,11 @@ END_TEST /* Check whether sr_output_options_get() works. */ START_TEST(test_output_options) { - const struct sr_option *opt; + const struct sr_option **opt; opt = sr_output_options_get(sr_output_find("bits")); fail_unless(opt != NULL, "Couldn't find 'bits' options."); - fail_unless(!strcmp(opt->id, "width"), "Wrong 'bits' option found!"); + fail_unless(!strcmp((*opt)->id, "width"), "Wrong 'bits' option found!"); } END_TEST