aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/packet_win.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-06-27 04:36:03 +0000
committerGuy Harris <guy@alum.mit.edu>2000-06-27 04:36:03 +0000
commit7fbf320b8a93553285f702c88440c0822c66ba4d (patch)
tree862b7499b86746778e8e8441220d609f4e3cf1f6 /gtk/packet_win.c
parent85a7f56ac0d6f6488986cb8c0139874349e1c070 (diff)
Patch from Ben Fowler to rename the global variable "cf" to "cfile", to
make it easier to use grep to find all references to it without getting a lot of false hits and to check, after allocating the memory chunk for "frame_data" structures, that the allocation succeeded. svn path=/trunk/; revision=2092
Diffstat (limited to 'gtk/packet_win.c')
-rw-r--r--gtk/packet_win.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gtk/packet_win.c b/gtk/packet_win.c
index ae100ae37d..423ea58d3d 100644
--- a/gtk/packet_win.c
+++ b/gtk/packet_win.c
@@ -3,7 +3,7 @@
*
* Copyright 2000, Jeffrey C. Foster <jfoste@woodward.com>
*
- * $Id: packet_win.c,v 1.8 2000/05/19 23:06:32 gram Exp $
+ * $Id: packet_win.c,v 1.9 2000/06/27 04:36:03 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -109,9 +109,9 @@ void new_window_cb(GtkWidget *w){
/* data from the packet_list GtkCList */
/* Find what row this packet is in. */
row = gtk_clist_find_row_from_data(GTK_CLIST(packet_list),
- cf.current_frame);
+ cfile.current_frame);
g_assert(row != -1);
- for( i = 0; i < cf.cinfo.num_cols; ++i){
+ for( i = 0; i < cfile.cinfo.num_cols; ++i){
if ( gtk_clist_get_text(GTK_CLIST( packet_list),
row, i, &TextPtr)){
@@ -166,14 +166,14 @@ create_new_window ( char *Title, gint tv_size, gint bv_size){
/* Allocate data structure to represent this window. */
DataPtr = (struct PacketWinData *) g_malloc(sizeof(struct PacketWinData));
- DataPtr->cap_len = cf.current_frame->cap_len;
- DataPtr->encoding = cf.current_frame->flags.encoding;
- memcpy(&DataPtr->pseudo_header, &cf.pseudo_header, sizeof DataPtr->pseudo_header);
+ DataPtr->cap_len = cfile.current_frame->cap_len;
+ DataPtr->encoding = cfile.current_frame->flags.encoding;
+ memcpy(&DataPtr->pseudo_header, &cfile.pseudo_header, sizeof DataPtr->pseudo_header);
DataPtr->pd = g_malloc(DataPtr->cap_len);
- memcpy(DataPtr->pd, cf.pd, DataPtr->cap_len);
+ memcpy(DataPtr->pd, cfile.pd, DataPtr->cap_len);
DataPtr->protocol_tree = proto_tree_create_root();
proto_tree_is_visible = TRUE;
- dissect_packet(&DataPtr->pseudo_header, DataPtr->pd, cf.current_frame,
+ dissect_packet(&DataPtr->pseudo_header, DataPtr->pd, cfile.current_frame,
DataPtr->protocol_tree);
proto_tree_is_visible = FALSE;
DataPtr->main = main_w;