aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-lwres.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2012-08-10 22:55:02 +0000
committerBill Meier <wmeier@newsguy.com>2012-08-10 22:55:02 +0000
commit638d74d43f9baf45dc3641939eec36f801414187 (patch)
tree5bfcabbb83a6e7359cfc302cdc604264560d66a0 /epan/dissectors/packet-lwres.c
parente6ffe7b59b9f36c534d3b2d6cc78b05dfe517f67 (diff)
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
Diffstat (limited to 'epan/dissectors/packet-lwres.c')
-rw-r--r--epan/dissectors/packet-lwres.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-lwres.c b/epan/dissectors/packet-lwres.c
index e444e7ae81..f95efdda56 100644
--- a/epan/dissectors/packet-lwres.c
+++ b/epan/dissectors/packet-lwres.c
@@ -916,17 +916,17 @@ dissect_lwres(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
col_add_fstr(pinfo->cinfo, COL_INFO,
"%s, opcode=%s, serial=0x%x, result=%s",
- val_to_str((guint32)message_type,message_types_values,"unknown"),
- val_to_str(opcode, opcode_values, "unknown"),
+ val_to_str_const((guint32)message_type,message_types_values,"unknown"),
+ val_to_str_const(opcode, opcode_values, "unknown"),
serial,
- val_to_str(result,result_values,"unknown"));
+ val_to_str_const(result,result_values,"unknown"));
}
else
{
col_add_fstr(pinfo->cinfo, COL_INFO,
"%s, opcode=%s, serial=0x%x",
- val_to_str((guint32)message_type,message_types_values,"unknown"),
- val_to_str(opcode, opcode_values, "unknown"),
+ val_to_str_const((guint32)message_type,message_types_values,"unknown"),
+ val_to_str_const(opcode, opcode_values, "unknown"),
serial);
}
}