aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mtp3mg.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2010-10-28 18:49:40 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2010-10-28 18:49:40 +0000
commit3971cb5d13071fce6b95ea40f6d4ea518d01702b (patch)
tree1cb73e4f3ad4634129af5af2558bdc1ea4eb55ab /epan/dissectors/packet-mtp3mg.c
parent54e10cb50913dbc89afeca782eb750704f05cfc6 (diff)
Copy hf variables by value, not by reference.
svn path=/trunk/; revision=34682
Diffstat (limited to 'epan/dissectors/packet-mtp3mg.c')
-rw-r--r--epan/dissectors/packet-mtp3mg.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/epan/dissectors/packet-mtp3mg.c b/epan/dissectors/packet-mtp3mg.c
index 22ce5a2611..099b2f20dd 100644
--- a/epan/dissectors/packet-mtp3mg.c
+++ b/epan/dissectors/packet-mtp3mg.c
@@ -610,19 +610,19 @@ dissect_mtp3mg_fcm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
} else /* ANSI_STANDARD and CHINESE_ITU_STANDARD */ {
- int *hf_apc_string;
+ int hf_apc_string;
if (mtp3_standard == ANSI_STANDARD) {
- hf_apc_string = &hf_mtp3mg_tfc_ansi_apc;
+ hf_apc_string = hf_mtp3mg_tfc_ansi_apc;
} else /* CHINESE_ITU_STANDARD */ {
- hf_apc_string = &hf_mtp3mg_tfc_chinese_apc;
+ hf_apc_string = hf_mtp3mg_tfc_chinese_apc;
}
dissect_mtp3_3byte_pc(tvb, 0, tree, ett_mtp3mg_fcm_apc,
- *hf_apc_string, hf_mtp3mg_tfc_apc_network,
+ hf_apc_string, hf_mtp3mg_tfc_apc_network,
hf_mtp3mg_tfc_apc_cluster,
hf_mtp3mg_tfc_apc_member, 0, 0);
@@ -921,14 +921,14 @@ dissect_mtp3mg_ufc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
if (mtp3_standard == ANSI_STANDARD
|| mtp3_standard == CHINESE_ITU_STANDARD)
{
- int *hf_apc;
+ int hf_apc;
if (mtp3_standard == ANSI_STANDARD)
- hf_apc = &hf_mtp3mg_upu_ansi_apc;
+ hf_apc = hf_mtp3mg_upu_ansi_apc;
else /* CHINESE_ITU_STANDARD */
- hf_apc = &hf_mtp3mg_upu_chinese_apc;
+ hf_apc = hf_mtp3mg_upu_chinese_apc;
- dissect_mtp3_3byte_pc(tvb, 0, tree, ett_mtp3mg_upu_apc, *hf_apc,
+ dissect_mtp3_3byte_pc(tvb, 0, tree, ett_mtp3mg_upu_apc, hf_apc,
hf_mtp3mg_rsm_apc_network,
hf_mtp3mg_rsm_apc_cluster,
hf_mtp3mg_rsm_apc_member, 0, 0);