X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=sigrok-cli.c;h=fc6884be07b349df565b2bd1d6382394df7d9e55;hb=7cb9889f780a78f728c10717625e288a20ea69cb;hp=86ac278250d6425d2be440f3b2adc315f1e0539c;hpb=c2c4a0def11bd2a589aa62f8f501ff20ef5f99e4;p=sigrok-cli.git diff --git a/sigrok-cli.c b/sigrok-cli.c index 86ac278..fc6884b 100644 --- a/sigrok-cli.c +++ b/sigrok-cli.c @@ -510,11 +510,14 @@ err_out: return 0; } -void show_pd_annotation(struct srd_proto_data *pdata) +void show_pd_annotation(struct srd_proto_data *pdata, void *data) { int i; char **annotations; + /* 'data' is not used in this specific callback. */ + (void)data; + if (pdata->ann_format != 0) { /* CLI only shows the default annotation format. */ return; @@ -1012,7 +1015,7 @@ int main(int argc, char **argv) return 1; } if (srd_register_callback(SRD_OUTPUT_ANN, - show_pd_annotation) != SRD_OK) { + show_pd_annotation, NULL) != SRD_OK) { printf("Failed to register protocol decoder callback\n"); return 1; }