diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-09-15 22:16:08 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-09-15 22:16:08 +0000 |
commit | 01dfcd5806d9c6b50b0c3bb29f8d3948538268d4 (patch) | |
tree | 48c2e6414a4abf8dc05211b0adc26c6616f509d4 /gtk/mgcp_stat.c | |
parent | a754945829c4f3cc54fb87b70cf1e4d7c6481550 (diff) |
Add a routine to return the display name for a "capture_file" structure,
rather than constructing that name when a capture file is opened and
putting a pointer to it in that structure.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8476 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/mgcp_stat.c')
-rw-r--r-- | gtk/mgcp_stat.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/gtk/mgcp_stat.c b/gtk/mgcp_stat.c index 2ab53f7033..69eaa85a68 100644 --- a/gtk/mgcp_stat.c +++ b/gtk/mgcp_stat.c @@ -2,7 +2,7 @@ * mgcp-statistics for ethereal * Copyright 2003 Lars Roland * - * $Id: mgcp_stat.c,v 1.11 2003/09/15 20:37:37 guy Exp $ + * $Id: mgcp_stat.c,v 1.12 2003/09/15 22:16:08 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -37,7 +37,6 @@ #include <string.h> #include "menu.h" #include "../epan/packet_info.h" -#include "../epan/filesystem.h" #include "../tap.h" #include "../epan/value_string.h" #include "../register.h" @@ -110,10 +109,7 @@ mgcpstat_reset(void *pms) ms->req_dup_num=0; ms->rsp_dup_num=0; - if (cfile.displayname) - snprintf(title, 255, "MGCP SRT Statistics: %s", cfile.displayname); - else - snprintf(title, 255, "MGCP SRT Statistics"); + snprintf(title, 255, "MGCP SRT Statistics: %s", cf_get_display_name(&cfile)); if (! dlg) dlg=gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_title(GTK_WINDOW(dlg), title); @@ -350,10 +346,7 @@ gtk_mgcpstat_cb(GtkWidget *w _U_, gpointer d _U_) } dlg=gtk_window_new(GTK_WINDOW_TOPLEVEL); - if (cfile.displayname) - snprintf(title, 255, "MGCP SRT Statistics: %s", cfile.displayname); - else - snprintf(title, 255, "MGCP SRT Statistics"); + snprintf(title, 255, "MGCP SRT Statistics: %s", cf_get_display_name(&cfile)); gtk_window_set_title(GTK_WINDOW(dlg), title); SIGNAL_CONNECT(dlg, "destroy", dlg_destroy_cb, NULL); dlg_box=gtk_vbox_new(FALSE, 0); |