From 638d74d43f9baf45dc3641939eec36f801414187 Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Fri, 10 Aug 2012 22:55:02 +0000 Subject: Use val_to_str_const() where appropriate; Also (for a few files): - create/use some extended value strings; - remove unneeded #include files; - remove unneeded variable initialization; - re-order fcns slightly so prefs_reg_handoff...() at end, etc svn path=/trunk/; revision=44438 --- epan/dissectors/packet-kingfisher.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/dissectors/packet-kingfisher.c') diff --git a/epan/dissectors/packet-kingfisher.c b/epan/dissectors/packet-kingfisher.c index 14ed18ddba..249b843e01 100644 --- a/epan/dissectors/packet-kingfisher.c +++ b/epan/dissectors/packet-kingfisher.c @@ -208,7 +208,7 @@ dissect_kingfisher(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean case 0x80: case 0x81: col_set_str(pinfo->cinfo, COL_PROTOCOL, "Kingfisher"); - func_string = val_to_str(tvb_get_guint8(tvb, 0), function_code_vals, "Unknown function"); + func_string = val_to_str_const(tvb_get_guint8(tvb, 0), function_code_vals, "Unknown function"); col_add_fstr(pinfo->cinfo, COL_INFO, "(%s)", func_string); proto_tree_add_protocol_format(tree, proto_kingfisher, tvb, 0, -1, "Kingfisher Protocol, %s", func_string); return TRUE; @@ -268,7 +268,7 @@ dissect_kingfisher(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean /* Ok this does look like Kingfisher, so lets dissect it */ - func_string = val_to_str(kfp->function, function_code_vals, "Unknown function"); + func_string = val_to_str_const(kfp->function, function_code_vals, "Unknown function"); col_set_str(pinfo->cinfo, COL_PROTOCOL, "Kingfisher"); col_add_fstr(pinfo->cinfo, COL_INFO, "%u > %u (%s)", kfp->from, kfp->target, func_string); -- cgit v1.2.3