summaryrefslogtreecommitdiff
path: root/tap-protohierstat.c
diff options
context:
space:
mode:
authorKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-08-09 17:33:23 +0000
committerKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-08-09 17:33:23 +0000
commit3512e485ca7cbea07c193f87f029cf5f6959d864 (patch)
tree41b31c399a92ff8fdd4281ab78884c37e6846e78 /tap-protohierstat.c
parentd3174f0d03940b7dce1dcf625002b206b27b92fd (diff)
downloadwireshark-3512e485ca7cbea07c193f87f029cf5f6959d864.tar.gz
Add PNODE_FINFO. We've been using PITEM_FINFO on proto_node's. This works because proto_item is typedefed to proto_node. We shouldn't rely on this since this is an implementation detail.
svn path=/trunk/; revision=29354
Diffstat (limited to 'tap-protohierstat.c')
-rw-r--r--tap-protohierstat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tap-protohierstat.c b/tap-protohierstat.c
index b413f5035e..407ae57a26 100644
--- a/tap-protohierstat.c
+++ b/tap-protohierstat.c
@@ -76,7 +76,7 @@ protohierstat_packet(void *prs, packet_info *pinfo, epan_dissect_t *edt, const v
{
phs_t *rs=prs;
phs_t *tmprs;
- proto_tree *tree;
+ proto_node *node;
field_info *fi;
if(!edt){
@@ -89,8 +89,8 @@ protohierstat_packet(void *prs, packet_info *pinfo, epan_dissect_t *edt, const v
return 0;
}
- for(tree=edt->tree->first_child;tree;tree=tree->next){
- fi=PITEM_FINFO(tree);
+ for(node=edt->tree->first_child;node;node=node->next){
+ fi=PNODE_FINFO(node);
/* first time we saw a protocol at this leaf */
if(rs->protocol==-1){