aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/fc_stat.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-08-06 03:44:55 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-08-06 03:44:55 +0000
commitf026752489e09f18ac113ec6482e1abb0e420646 (patch)
tree32b19974cee8f9cb038186254b92b64e98975504 /gtk/fc_stat.c
parent23f9886d057ac7a7009ed4e7670321d577198eca (diff)
Squelch more const warnings (and fix some memory leaks that found).
_U_-ify some unused arguments, rather than assigning them to themselves. Un-constify one variable that gets assigned a mallocated pointer. Clean up indentation. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15236 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/fc_stat.c')
-rw-r--r--gtk/fc_stat.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/gtk/fc_stat.c b/gtk/fc_stat.c
index 99378e72bd..04650a960e 100644
--- a/gtk/fc_stat.c
+++ b/gtk/fc_stat.c
@@ -128,17 +128,17 @@ win_destroy_cb(GtkWindow *win _U_, gpointer data)
static void
-gtk_fcstat_init(char *optarg)
+gtk_fcstat_init(const char *optarg)
{
fcstat_t *fc;
- char *filter=NULL;
+ const char *filter=NULL;
GtkWidget *label;
char filter_string[256];
GString *error_string;
int i;
GtkWidget *vbox;
- GtkWidget *bbox;
- GtkWidget *close_bt;
+ GtkWidget *bbox;
+ GtkWidget *close_bt;
if(!strncmp(optarg,"fc,srt,",7)){
filter=optarg+7;
@@ -188,15 +188,15 @@ gtk_fcstat_init(char *optarg)
gtk_box_pack_end(GTK_BOX(vbox), bbox, FALSE, FALSE, 0);
close_bt = OBJECT_GET_DATA(bbox, GTK_STOCK_CLOSE);
- window_set_cancel_button(fc->win, close_bt, window_cancel_button_cb);
+ window_set_cancel_button(fc->win, close_bt, window_cancel_button_cb);
- SIGNAL_CONNECT(fc->win, "delete_event", window_delete_event_cb, NULL);
- SIGNAL_CONNECT(fc->win, "destroy", win_destroy_cb, fc);
+ SIGNAL_CONNECT(fc->win, "delete_event", window_delete_event_cb, NULL);
+ SIGNAL_CONNECT(fc->win, "destroy", win_destroy_cb, fc);
gtk_widget_show_all(fc->win);
- window_present(fc->win);
+ window_present(fc->win);
- cf_retap_packets(&cfile);
+ cf_retap_packets(&cfile);
}