aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-nt-tpcp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-04-19 12:29:50 -0700
committerGuy Harris <guy@alum.mit.edu>2014-04-19 19:30:17 +0000
commit97869f2dec0a8cce8ff1745a0bbd747da7a2e1e7 (patch)
treea52e5ae2fe9d04877c951225007f43c145c9ab96 /epan/dissectors/packet-nt-tpcp.c
parentc8f7e16b57ed02dd5b4ccba7ec16ac37ae37beb6 (diff)
More name changes.
Add ep_ to routines that may return ephemeral strings. Change "get_XXX" to "XXX_to_display" if the routine returns a formatted string if it can't get a name. Change-Id: Ia0e82784349752cf4285bf82788316c9588fdd88 Reviewed-on: https://code.wireshark.org/review/1217 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-nt-tpcp.c')
-rw-r--r--epan/dissectors/packet-nt-tpcp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-nt-tpcp.c b/epan/dissectors/packet-nt-tpcp.c
index 5611dd85e3..2a21060159 100644
--- a/epan/dissectors/packet-nt-tpcp.c
+++ b/epan/dissectors/packet-nt-tpcp.c
@@ -28,7 +28,7 @@
#include <glib.h>
#include <epan/packet.h>
-#include <epan/addr_resolv.h> /* this is for get_hostname and get_udp_port */
+#include <epan/addr_resolv.h> /* this is for get_hostname and ep_udp_port_to_display */
void proto_register_tpcp(void);
void proto_reg_handoff_tpcp(void);
@@ -134,7 +134,7 @@ dissect_tpcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
col_add_fstr(pinfo->cinfo, COL_INFO,"%s id %d CPort %s CIP %s SIP %s",
val_to_str_const(tpcph.type, type_vals, "Unknown"),
tpcph.id,
- get_udp_port(tpcph.cport),
+ ep_udp_port_to_display(tpcph.cport),
ip_to_str((guint8 *)&tpcph.caddr),
ip_to_str((guint8 *)&tpcph.saddr));
@@ -159,7 +159,7 @@ dissect_tpcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree_add_uint(tpcp_tree, hf_tpcp_id, tvb, 4, 2, tpcph.id);
proto_tree_add_uint_format_value(tpcp_tree, hf_tpcp_cport, tvb, 6, 2, tpcph.cport,
- "%s", get_udp_port(tpcph.cport));
+ "%s", ep_udp_port_to_display(tpcph.cport));
proto_tree_add_ipv4(tpcp_tree, hf_tpcp_caddr, tvb, 8, 4, tpcph.caddr);