diff options
author | Bill Meier <wmeier@newsguy.com> | 2009-05-08 22:18:14 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2009-05-08 22:18:14 +0000 |
commit | 5aa5576a55f10569da3d10704912531cf044e835 (patch) | |
tree | ac1058ca65044fffb32992f787645e7a031a29f6 /epan/dissectors/packet-arp.c | |
parent | f8e4a91659ab28f2d2ac27bdb43a0ae417f63c28 (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.
svn path=/trunk/; revision=28320
Diffstat (limited to 'epan/dissectors/packet-arp.c')
-rw-r--r-- | epan/dissectors/packet-arp.c | 10 |
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, |