X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Finput%2Fvcd.c;h=62b9a090086f55d4c8dbb6fda98878605ed27c2d;hb=013ec84b83a64088b524bb0b3a923c98b7ae9ea4;hp=cfcecf30b21614ff62e457b88344f974aa5dd318;hpb=5e83cd741f01551e1a529b2da703f1c91c25d520;p=libsigrok.git diff --git a/src/input/vcd.c b/src/input/vcd.c index cfcecf30..62b9a090 100644 --- a/src/input/vcd.c +++ b/src/input/vcd.c @@ -257,7 +257,7 @@ static int format_match(GHashTable *metadata) g_free(name); g_free(contents); - return status; + return status ? SR_OK : SR_ERR; } /* Send N samples of the given value. */ @@ -524,7 +524,7 @@ static struct sr_option options[] = { { "skip", "Skip", "Skip until timestamp", NULL, NULL }, { "downsample", "Downsample", "Divide samplerate by factor", NULL, NULL }, { "compress", "Compress", "Compress idle periods longer than this value", NULL, NULL }, - { 0 } + ALL_ZERO }; static struct sr_option *get_options(void)