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-x11.c | |
parent | 04c530b2def5a06f92aecbc16ca698a84b6811cd (diff) |
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-x11.c')
-rw-r--r-- | packet-x11.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-x11.c b/packet-x11.c index a3633d1566..65dc933c5d 100644 --- a/packet-x11.c +++ b/packet-x11.c @@ -2,7 +2,7 @@ * Routines for X11 dissection * Copyright 2000, Christophe Tronche <ch.tronche@computer.org> * - * $Id: packet-x11.c,v 1.21 2001/06/18 02:17:54 guy Exp $ + * $Id: packet-x11.c,v 1.22 2001/07/16 05:16:58 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -825,7 +825,7 @@ static void listOfByte(tvbuff_t *tvb, int hf, int length) length = next_offset - cur_offset; } if (length <= 0) length = 1; - proto_tree_add_bytes(t, hf, tvb, cur_offset, length, tvb_get_ptr(tvb, cur_offset, length)); + proto_tree_add_item(t, hf, tvb, cur_offset, length, little_endian); cur_offset += length; } @@ -1126,7 +1126,7 @@ static void string16_with_buffer_preallocated(tvbuff_t *tvb, proto_tree *t, proto_tree_add_string_format(t, hf, tvb, offset, length, tvb_get_ptr(tvb, offset, length), "%s: %s", proto_registrar_get_nth(hf) -> name, *s); } else - proto_tree_add_bytes(t, hf_bytes, tvb, offset, length, tvb_get_ptr(tvb, offset, length)); + proto_tree_add_item(t, hf_bytes, tvb, offset, length, little_endian); } |