diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-07-16 05:16:58 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-07-16 05:16:58 +0000 |
commit | 3c91e2e203855cf290ba0495ca130bfc96f0f848 (patch) | |
tree | f69005a62bb0392c20abfb3cf5d0975c57c1a073 /packet-afs-macros.h | |
parent | 04c530b2def5a06f92aecbc16ca698a84b6811cd (diff) | |
download | wireshark-3c91e2e203855cf290ba0495ca130bfc96f0f848.tar.gz wireshark-3c91e2e203855cf290ba0495ca130bfc96f0f848.tar.bz2 wireshark-3c91e2e203855cf290ba0495ca130bfc96f0f848.zip |
Convert a bunch of "proto_tree_add_bytes(tree, hf, tvb, offset, length,
tvb_get_ptr(tvb, offset, length))" calls to "proto_tree_add_item()"
calls.
Do the same, in "packet-iscsi.c" and "packet-mrdisc.c", for
"proto_tree_add_uint()" and "proto_tree_add_boolean()" calls.
svn path=/trunk/; revision=3726
Diffstat (limited to 'packet-afs-macros.h')
-rw-r--r-- | packet-afs-macros.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packet-afs-macros.h b/packet-afs-macros.h index 846057eec1..71bacac162 100644 --- a/packet-afs-macros.h +++ b/packet-afs-macros.h @@ -8,7 +8,7 @@ * Portions based on information/specs retrieved from the OpenAFS sources at * www.openafs.org, Copyright IBM. * - * $Id: packet-afs-macros.h,v 1.10 2001/06/30 09:32:44 guy Exp $ + * $Id: packet-afs-macros.h,v 1.11 2001/07/16 05:16:57 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -418,8 +418,7 @@ /* Raw data */ #define OUT_BYTES(field, bytes) \ - proto_tree_add_bytes(tree,field, tvb,offset,bytes,\ - tvb_get_ptr(tvb,offset,bytes)); \ + proto_tree_add_item(tree, field, tvb, offset, bytes, FALSE);\ offset += bytes; /* Output a rx style string, up to a maximum length first |