aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-arp.c
diff options
context:
space:
mode:
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2009-05-08 22:18:14 +0000
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2009-05-08 22:18:14 +0000
commit09ac9a7d4b5c19b393a8223639dc7f53dc49abe0 (patch)
treeac1058ca65044fffb32992f787645e7a031a29f6 /epan/dissectors/packet-arp.c
parent7625080ea1d712c9795152a03fa0381cd6d9b669 (diff)
The convention is to use TFS(...) when specifying a true_false_string with an FT_BOOLEAN field;
Also: use the global true_false_string tfs_yes_no in place of a static local string. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28320 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-arp.c')
-rw-r--r--epan/dissectors/packet-arp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-arp.c b/epan/dissectors/packet-arp.c
index b1d4841fac..71a47c1a93 100644
--- a/epan/dissectors/packet-arp.c
+++ b/epan/dissectors/packet-arp.c
@@ -1111,7 +1111,7 @@ dissect_arp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
void
proto_register_arp(void)
{
- static struct true_false_string type_bit = { "E.164", "ATM Forum NSAPA" };
+ static struct true_false_string tfs_type_bit = { "E.164", "ATM Forum NSAPA" };
static hf_register_info hf[] = {
{ &hf_arp_hard_type,
@@ -1131,7 +1131,7 @@ proto_register_arp(void)
{ &hf_atmarp_sht,
{ "Sender ATM number type", "arp.src.htype",
- FT_BOOLEAN, 8, &type_bit, ATMARP_IS_E164,
+ FT_BOOLEAN, 8, TFS(&tfs_type_bit), ATMARP_IS_E164,
"", HFILL }},
{ &hf_atmarp_shl,
@@ -1141,7 +1141,7 @@ proto_register_arp(void)
{ &hf_atmarp_sst,
{ "Sender ATM subaddress type", "arp.src.stype",
- FT_BOOLEAN, 8, &type_bit, ATMARP_IS_E164,
+ FT_BOOLEAN, 8, TFS(&tfs_type_bit), ATMARP_IS_E164,
"", HFILL }},
{ &hf_atmarp_ssl,
@@ -1166,7 +1166,7 @@ proto_register_arp(void)
{ &hf_atmarp_tht,
{ "Target ATM number type", "arp.dst.htype",
- FT_BOOLEAN, 8, &type_bit, ATMARP_IS_E164,
+ FT_BOOLEAN, 8, TFS(&tfs_type_bit), ATMARP_IS_E164,
"", HFILL }},
{ &hf_atmarp_thl,
@@ -1176,7 +1176,7 @@ proto_register_arp(void)
{ &hf_atmarp_tst,
{ "Target ATM subaddress type", "arp.dst.stype",
- FT_BOOLEAN, 8, &type_bit, ATMARP_IS_E164,
+ FT_BOOLEAN, 8, TFS(&tfs_type_bit), ATMARP_IS_E164,
"", HFILL }},
{ &hf_atmarp_tsl,