From: Uwe Hermann Date: Sun, 17 Aug 2014 15:32:46 +0000 (+0200) Subject: unitests: Adapt to recent API changes. X-Git-Tag: libsigrok-0.4.0~1139 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=34f4e3b4e4a4984d024e8757ee8b49c099d8baf9;p=libsigrok.git unitests: Adapt to recent API changes. --- 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