diff options
author | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-10-11 01:52:41 +0000 |
---|---|---|
committer | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-10-11 01:52:41 +0000 |
commit | 05b0b2bf29a7bebede334a1fbbafc39a5af940fa (patch) | |
tree | 0f5f677f1714de6fb0dfc8d86cf529d44341cc07 /epan/dissectors/packet-sccp.c | |
parent | c87cf9f8f1c4ec9779343c88138ccdc86feea5ed (diff) |
hf variables can be copied/passed by value, not by reference.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34467 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-sccp.c')
-rw-r--r-- | epan/dissectors/packet-sccp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-sccp.c b/epan/dissectors/packet-sccp.c index c2d633a8b8..f1bd1646ac 100644 --- a/epan/dissectors/packet-sccp.c +++ b/epan/dissectors/packet-sccp.c @@ -1226,25 +1226,25 @@ static int dissect_sccp_3byte_pc(tvbuff_t *tvb, proto_tree *call_tree, guint offset, gboolean called) { - int *hf_pc; + int hf_pc; if (decode_mtp3_standard == ANSI_STANDARD) { if (called) - hf_pc = &hf_sccp_called_ansi_pc; + hf_pc = hf_sccp_called_ansi_pc; else - hf_pc = &hf_sccp_calling_ansi_pc; + hf_pc = hf_sccp_calling_ansi_pc; } else /* CHINESE_ITU_STANDARD */ { if (called) - hf_pc = &hf_sccp_called_chinese_pc; + hf_pc = hf_sccp_called_chinese_pc; else - hf_pc = &hf_sccp_calling_chinese_pc; + hf_pc = hf_sccp_calling_chinese_pc; } /* create and fill the PC tree */ dissect_mtp3_3byte_pc(tvb, offset, call_tree, called ? ett_sccp_called_pc : ett_sccp_calling_pc, - *hf_pc, + hf_pc, called ? hf_sccp_called_pc_network : hf_sccp_calling_pc_network, called ? hf_sccp_called_pc_cluster : hf_sccp_calling_pc_cluster, called ? hf_sccp_called_pc_member : hf_sccp_calling_pc_member, |