aboutsummaryrefslogtreecommitdiffstats
path: root/epan/epan.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2001-11-21 23:16:26 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2001-11-21 23:16:26 +0000
commit8743a4a8a7613095d833e380744a358b7074b0c8 (patch)
treefdf1228846948ec5e1c08b7b50f1d81d1f379ffc /epan/epan.c
parentbd90493d46399161487bb21997af3e6450c5425d (diff)
Remove the global packet_info called "pi". Dissectors now only
access their own "pinfo". A packet_info is stored in epan_dissect_t, which is created for the dissection of a single packet. GUI functions which need to access the packet_info of the currently selected packet used to use "pi"; now they use cfile.edt->pi. cfile's "edt" member is the epan_dissect_t of the currently-selected packet. The functionality of blank_packetinfo() was moved into dissect_packet(), as that's the only place that called blank_packetinfo(), after a spurious call to blank_packetinfo() was removed from packet_list_select_cb(). svn path=/trunk/; revision=4246
Diffstat (limited to 'epan/epan.c')
-rw-r--r--epan/epan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/epan.c b/epan/epan.c
index 407f6aa11b..a60c67e92c 100644
--- a/epan/epan.c
+++ b/epan/epan.c
@@ -1,6 +1,6 @@
/* epan.h
*
- * $Id: epan.c,v 1.10 2001/04/02 00:38:34 hagbard Exp $
+ * $Id: epan.c,v 1.11 2001/11/21 23:16:23 gram Exp $
*
* Ethereal Protocol Analyzer Library
*
@@ -88,7 +88,7 @@ epan_dissect_new(void* pseudo_header, const guint8* data, frame_data *fd, proto_
/* XXX - init tree */
edt->tree = tree;
- dissect_packet(&edt->tvb, pseudo_header, data, fd, tree);
+ dissect_packet(edt, pseudo_header, data, fd);
return edt;
}