diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-01-17 23:26:45 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-01-17 23:26:45 +0000 |
commit | 4f81f615b099da56cc7c5595bbd05d8eea0a2510 (patch) | |
tree | 8abae223092e91c6709413ed64e82560735e57bd /asn1 | |
parent | fb24498c1208788a9a093c1b204b99c2f574abbf (diff) | |
download | wireshark-4f81f615b099da56cc7c5595bbd05d8eea0a2510.tar.gz |
Use -1 rather than tvb_length() to create a protocol tree item that runs
to the end of the tvbuff.
Don't return a value from "dissect_h4501()" - the value isn't used, and
"dissect_h4501()" is registered with "register_dissector()", so it's not
supposed to return a value.
svn path=/trunk/; revision=13104
Diffstat (limited to 'asn1')
-rw-r--r-- | asn1/h450/packet-h450-template.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/asn1/h450/packet-h450-template.c b/asn1/h450/packet-h450-template.c index 616c9a7b71..bffeecb308 100644 --- a/asn1/h450/packet-h450-template.c +++ b/asn1/h450/packet-h450-template.c @@ -770,19 +770,17 @@ dissect_ros_ROSxxx(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tr return offset; } -static int +static void dissect_h4501(tvbuff_t *tvb, packet_info *pinfo, proto_tree* tree) { proto_item *it; proto_tree *tr; guint32 offset=0; - it=proto_tree_add_protocol_format(tree, proto_h4501, tvb, 0, tvb_length(tvb), "H.450.1"); + it=proto_tree_add_protocol_format(tree, proto_h4501, tvb, 0, -1, "H.450.1"); tr=proto_item_add_subtree(it, ett_h4501); dissect_h450_H4501SupplementaryService(tvb, offset, pinfo, tr, hf_h4501); - return offset; - } /*--- proto_register_h450 -------------------------------------------*/ @@ -971,7 +969,3 @@ proto_reg_handoff_h4501(void) h4501_handle = find_dissector("h4501"); } - - - - |