aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/wimax/packet-wmx.c
diff options
context:
space:
mode:
authorKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-08-09 17:57:31 +0000
committerKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-08-09 17:57:31 +0000
commit083729e02c44e41943f44dc7efd3bacd75ee62a4 (patch)
tree250d8074cd60db9a6f6cc1d12ed9ff6d797c859f /plugins/wimax/packet-wmx.c
parent3512e485ca7cbea07c193f87f029cf5f6959d864 (diff)
downloadwireshark-083729e02c44e41943f44dc7efd3bacd75ee62a4.tar.gz
wireshark-083729e02c44e41943f44dc7efd3bacd75ee62a4.tar.bz2
wireshark-083729e02c44e41943f44dc7efd3bacd75ee62a4.zip
Add PTREE_FINFO and use PITEM_FINFO when possible.
svn path=/trunk/; revision=29355
Diffstat (limited to 'plugins/wimax/packet-wmx.c')
-rw-r--r--plugins/wimax/packet-wmx.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/wimax/packet-wmx.c b/plugins/wimax/packet-wmx.c
index 9866c8ec41..5d2f1e9a68 100644
--- a/plugins/wimax/packet-wmx.c
+++ b/plugins/wimax/packet-wmx.c
@@ -643,8 +643,8 @@ proto_tree *add_tlv_subtree(tlv_info_t *this, gint idx, proto_tree *tree, int hf
/* display the TLV name and display the value in hex. Highlight type, length, and value. */
tlv_item = proto_tree_add_item(tree, hfindex, tvb, start, tlv_value_length, little_endian);
/* Correct the highlighting. */
- tlv_item->finfo->start -= tlv_val_offset;
- tlv_item->finfo->length += tlv_val_offset;
+ PITEM_FINFO(tlv_item)->start -= tlv_val_offset;
+ PITEM_FINFO(tlv_item)->length += tlv_val_offset;
/* add TLV subtree to contain the type, length, and value */
tlv_tree = proto_item_add_subtree(tlv_item, *ett_tlv[tlv_type]);
/* display the TLV type */
@@ -685,7 +685,7 @@ proto_tree *add_tlv_subtree(tlv_info_t *this, gint idx, proto_tree *tree, int hf
break;
}
/* Show "TLV value: " */
- tlv_item = proto_tree_add_text(tlv_tree, tvb, start, tlv_value_length, hex_fmt, tlv_item->finfo->hfinfo->name, tlv_value);
+ tlv_item = proto_tree_add_text(tlv_tree, tvb, start, tlv_value_length, hex_fmt, PITEM_FINFO(tlv_item)->hfinfo->name, tlv_value);
tlv_tree = proto_item_add_subtree(tlv_item, idx);
/* Return a pointer to the value level */
@@ -734,8 +734,8 @@ proto_tree *add_protocol_subtree(tlv_info_t *this, gint idx, proto_tree *tree, i
va_end(ap);
tlv_item = proto_tree_add_protocol_format(tree, hfindex, tvb, start, length, "%s", message);
/* Correct the highlighting. */
- tlv_item->finfo->start -= tlv_val_offset;
- tlv_item->finfo->length += tlv_val_offset;
+ PITEM_FINFO(tlv_item)->start -= tlv_val_offset;
+ PITEM_FINFO(tlv_item)->length += tlv_val_offset;
/* add TLV subtree to contain the type, length, and value */
tlv_tree = proto_item_add_subtree(tlv_item, *ett_tlv[tlv_type]);
/* display the TLV type */