From 11e554c26dc1e8e43b6def4a85ffe22658e06bbf Mon Sep 17 00:00:00 2001 From: Gerhard Sittig Date: Fri, 19 Apr 2019 15:03:14 +0200 Subject: [PATCH] decode: nits, whitespace and line length fix Address nits in the setup_pd_annotations() routine. Fixup an occurance of too deep an indentation level (introduced in 790b026162332). Rephrase a long line while we are here, to cut its length and for consistency with other "visible annotations" manipulations in other locations. --- decode.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/decode.c b/decode.c index fff1dee..b3d9bb2 100644 --- a/decode.c +++ b/decode.c @@ -358,8 +358,9 @@ int setup_pd_annotations(char *opt_pd_annotations) } } else { /* No class specified: show all of them. */ - g_hash_table_insert(pd_ann_visible, g_strdup(dec_id), - g_slist_append(NULL, GINT_TO_POINTER(-1))); + ann_class = -1; + l_ann = g_slist_append(NULL, GINT_TO_POINTER(ann_class)); + g_hash_table_insert(pd_ann_visible, g_strdup(dec_id), l_ann); g_debug("cli: Showing all annotation classes for protocol " "decoder %s.", dec_id); } -- 2.30.2