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-t30.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/packet-t30.c') diff --git a/epan/dissectors/packet-t30.c b/epan/dissectors/packet-t30.c index b640848867..eb72967bec 100644 --- a/epan/dissectors/packet-t30.c +++ b/epan/dissectors/packet-t30.c @@ -991,7 +991,7 @@ dissect_t30_hdlc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) col_append_fstr(pinfo->cinfo, COL_INFO, " %s - %s", val_to_str_const(octet & 0x7F, t30_facsimile_control_field_vals_short, ""), - val_to_str(octet & 0x7F, t30_facsimile_control_field_vals, "") ); + val_to_str_const(octet & 0x7F, t30_facsimile_control_field_vals, "") ); /* TODO: VS Code Analysis makes a good point - several of these commands can't get detected while the m.s.b. is masked off! (e.g. T30_FC_DTC is 0x81). I couldn't readily work out from the T.30 -- cgit v1.2.3