From a23105b12a31ce9f329cf73f5536d003cea9e243 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Mon, 15 Sep 2014 20:26:08 +0200 Subject: [PATCH 1/1] Replace ann_format with ann_class. The naming has been changed to "annotation class" a while ago. --- decode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/decode.c b/decode.c index 7712ea1..b020b68 100644 --- a/decode.c +++ b/decode.c @@ -465,7 +465,7 @@ void show_pd_annotations(struct srd_proto_data *pdata, void *cb_data) show = FALSE; for (l = ann_list; l; l = l->next) { if (GPOINTER_TO_INT(l->data) == -1 - || GPOINTER_TO_INT(l->data) == pda->ann_format) { + || GPOINTER_TO_INT(l->data) == pda->ann_class) { show = TRUE; break; } @@ -484,7 +484,7 @@ void show_pd_annotations(struct srd_proto_data *pdata, void *cb_data) } else { /* Protocol decoder id, annotation class, * all annotation strings. */ - ann_descr = g_slist_nth_data(dec->annotations, pda->ann_format); + ann_descr = g_slist_nth_data(dec->annotations, pda->ann_class); printf(" %s: %s:", pdata->pdo->proto_id, ann_descr[0]); for (i = 0; pda->ann_text[i]; i++) printf(" \"%s\"", pda->ann_text[i]); -- 2.30.2