diff options
author | Bill Meier <wmeier@newsguy.com> | 2009-05-08 22:55:22 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2009-05-08 22:55:22 +0000 |
commit | abc0794cc2ec5b1995ac5ca62927aceef4403af6 (patch) | |
tree | 79cf85746b7037434f35f84b9dd1fab3ea0a226e /epan/dissectors/packet-nlm.c | |
parent | 5aa5576a55f10569da3d10704912531cf044e835 (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=28321
Diffstat (limited to 'epan/dissectors/packet-nlm.c')
-rw-r--r-- | epan/dissectors/packet-nlm.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/epan/dissectors/packet-nlm.c b/epan/dissectors/packet-nlm.c index ca60e5628e..859d386cfd 100644 --- a/epan/dissectors/packet-nlm.c +++ b/epan/dissectors/packet-nlm.c @@ -1131,9 +1131,6 @@ static const value_string nlm4_proc_vals[] = { /* end of NLM protocol version 4 */ -static struct true_false_string yesno = { "Yes", "No" }; - - void proto_register_nlm(void) { @@ -1155,10 +1152,10 @@ proto_register_nlm(void) NULL, 0, "cookie", HFILL }}, { &hf_nlm_block, { "block", "nlm.block", FT_BOOLEAN, BASE_NONE, - &yesno, 0, "block", HFILL }}, + TFS(&tfs_yes_no), 0, "block", HFILL }}, { &hf_nlm_exclusive, { "exclusive", "nlm.exclusive", FT_BOOLEAN, BASE_NONE, - &yesno, 0, "exclusive", HFILL }}, + TFS(&tfs_yes_no), 0, "exclusive", HFILL }}, { &hf_nlm_lock, { "lock", "nlm.lock", FT_NONE, 0, NULL, 0, "lock", HFILL }}, @@ -1185,7 +1182,7 @@ proto_register_nlm(void) NULL, 0, "l_len", HFILL }}, { &hf_nlm_reclaim, { "reclaim", "nlm.reclaim", FT_BOOLEAN, BASE_NONE, - &yesno, 0, "reclaim", HFILL }}, + TFS(&tfs_yes_no), 0, "reclaim", HFILL }}, { &hf_nlm_state, { "state", "nlm.state", FT_UINT32, BASE_DEC, NULL, 0, "STATD state", HFILL }}, |