From Marton Nemeth:

- The "showHex" name cannot be the name paramter. Changing it to "show_hex" should be fine.
- There is also a missing ';' at the end of a line in the example.

This fixes bug 2092.

svn path=/trunk/; revision=23840
This commit is contained in:
Stig Bjørlykke 2007-12-11 18:39:34 +00:00
parent 910c8f6281
commit f4ad6f2ac0
1 changed files with 2 additions and 2 deletions

View File

@ -861,7 +861,7 @@ dissect_PROTOABBREV(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/* add an item to the subtree, see section 1.6 for more information */
proto_tree_add_item(PROTOABBREV_tree,
hf_PROTOABBREV_FIELDABBREV, tvb, offset, len, FALSE)
hf_PROTOABBREV_FIELDABBREV, tvb, offset, len, FALSE);
/* Continue adding tree items to process the packet here */
@ -914,7 +914,7 @@ proto_register_PROTOABBREV(void)
proto_reg_handoff_PROTOABBREV);
/* Register a sample preference */
prefs_register_bool_preference(PROTOABBREV_module, "showHex",
prefs_register_bool_preference(PROTOABBREV_module, "show_hex",
"Display numbers in Hex",
"Enable to display numerical values in hexadecimal.",
&gPREF_HEX);