summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2014-09-15 20:28:21 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2014-09-15 20:28:21 +0200
commitec3de18f47d7cfeeed0756c4f87621259063c435 (patch)
tree8e6af5c904e9c25233a8eefbb256affbe2f5444a
parentafd2f3f77c31556f5f39f79766a7287c6cb587f2 (diff)
downloadsigrok-test-ec3de18f47d7cfeeed0756c4f87621259063c435.tar.gz
sigrok-test-ec3de18f47d7cfeeed0756c4f87621259063c435.zip
Replace ann_format with ann_class.
The naming has been changed to "annotation class" a while ago.
-rw-r--r--decoder/runtc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder/runtc.c b/decoder/runtc.c
index 364e43f..f58e004 100644
--- a/decoder/runtc.c
+++ b/decoder/runtc.c
@@ -252,14 +252,14 @@ static void srd_cb_ann(struct srd_proto_data *pdata, void *cb_data)
/* This is not the PD selected for output. */
return;
- if (op->class_idx != -1 && op->class_idx != pda->ann_format)
+ if (op->class_idx != -1 && op->class_idx != pda->ann_class)
/*
* This output takes a specific annotation class,
* but not the one that just came in.
*/
return;
- dec_ann = g_slist_nth_data(dec->annotations, pda->ann_format);
+ dec_ann = g_slist_nth_data(dec->annotations, pda->ann_class);
line = g_string_sized_new(256);
g_string_printf(line, "%" PRIu64 "-%" PRIu64 " %s: %s:",
pdata->start_sample, pdata->end_sample,