aboutsummaryrefslogtreecommitdiffstats
path: root/tap-protohierstat.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-12-03 09:28:26 +0000
committerGuy Harris <guy@alum.mit.edu>2003-12-03 09:28:26 +0000
commitdcd98ae8d334081d0b4e0f4c6902ac128dfeb000 (patch)
tree1d14652d65d1690cfc1980777b9bc90aac75b4c2 /tap-protohierstat.c
parented2ae2d8d3eb9bdf13562825d28a7a60869b5c56 (diff)
The "ptr_u" unions no longer have a "next" pointer - they now just have
one member - or have one that's not used, so get rid of those unions. svn path=/trunk/; revision=9151
Diffstat (limited to 'tap-protohierstat.c')
-rw-r--r--tap-protohierstat.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tap-protohierstat.c b/tap-protohierstat.c
index ba2c0bf2e9..dfe6481705 100644
--- a/tap-protohierstat.c
+++ b/tap-protohierstat.c
@@ -1,7 +1,7 @@
/* tap-protohierstat.c
* protohierstat 2002 Ronnie Sahlberg
*
- * $Id: tap-protohierstat.c,v 1.4 2003/11/24 22:11:53 guy Exp $
+ * $Id: tap-protohierstat.c,v 1.5 2003/12/03 09:28:19 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -93,8 +93,8 @@ protohierstat_packet(void *prs, packet_info *pinfo, epan_dissect_t *edt, void *d
/* first time we saw a protocol at this leaf */
if(rs->protocol==-1){
- rs->protocol=fi->ptr_u.hfinfo->id;
- rs->proto_name=fi->ptr_u.hfinfo->abbrev;
+ rs->protocol=fi->hfinfo->id;
+ rs->proto_name=fi->hfinfo->abbrev;
rs->frames=1;
rs->bytes=pinfo->fd->pkt_len;
rs->child=new_phs_t(rs);
@@ -104,7 +104,7 @@ protohierstat_packet(void *prs, packet_info *pinfo, epan_dissect_t *edt, void *d
/* find this protocol in the list of siblings */
for(tmprs=rs;tmprs;tmprs=tmprs->sibling){
- if(tmprs->protocol==fi->ptr_u.hfinfo->id){
+ if(tmprs->protocol==fi->hfinfo->id){
break;
}
}
@@ -115,8 +115,8 @@ protohierstat_packet(void *prs, packet_info *pinfo, epan_dissect_t *edt, void *d
;
tmprs->sibling=new_phs_t(rs->parent);
rs=tmprs->sibling;
- rs->protocol=fi->ptr_u.hfinfo->id;
- rs->proto_name=fi->ptr_u.hfinfo->abbrev;
+ rs->protocol=fi->hfinfo->id;
+ rs->proto_name=fi->hfinfo->abbrev;
} else {
rs=tmprs;
}