summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-07-24 00:12:41 +0000
committerGuy Harris <guy@alum.mit.edu>2013-07-24 00:12:41 +0000
commit045638fc9b617b279c6575438a708861f0cbfafb (patch)
treec71cadcafa27fcf60ce7378b1fe4785ff8692563 /ui
parentd8022e7c5e50575dc4d858a7cf1967deb88f7492 (diff)
downloadwireshark-045638fc9b617b279c6575438a708861f0cbfafb.tar.gz
Don't cast away constness, and constify a function parameter.
svn path=/trunk/; revision=50860
Diffstat (limited to 'ui')
-rw-r--r--ui/gtk/capture_dlg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/gtk/capture_dlg.c b/ui/gtk/capture_dlg.c
index 07a69b44d8..43637e9c74 100644
--- a/ui/gtk/capture_dlg.c
+++ b/ui/gtk/capture_dlg.c
@@ -327,7 +327,7 @@ gchar *col_index_to_name(gint indx)
}
static
-gint col_title_to_index(gchar *name)
+gint col_title_to_index(const gchar *name)
{
if (strcmp(name, "Capture") == 0) return CAPTURE;
if (strcmp(name, "Interface") == 0) return INTERFACE;
@@ -524,7 +524,7 @@ init_columns_menu(void)
columns_action_group = gtk_action_group_new ("ColumnsPopUpMenuActionGroup");
gtk_action_group_add_actions (columns_action_group, /* the action group */
- (GtkActionEntry *)columns_menu_popup_action_entries, /* an array of action descriptions */
+ (const GtkActionEntry *)columns_menu_popup_action_entries, /* an array of action descriptions */
G_N_ELEMENTS(columns_menu_popup_action_entries), /* the number of entries */
columns_menu_object); /* data to pass to the action callbacks */
@@ -5661,7 +5661,7 @@ query_tooltip_tree_view_cb (GtkWidget *widget,
gtk_tree_model_get (model, &iter, 0, &tmp, -1);
if (gtk_tree_view_get_path_at_pos(GTK_TREE_VIEW(tree_view), (gint) x, (gint) y, NULL, &column, NULL, NULL)) {
- idx = col_title_to_index((gchar *)gtk_tree_view_column_get_title(column));
+ idx = col_title_to_index((const gchar *)gtk_tree_view_column_get_title(column));
switch (idx)
{