From: compudj Date: Tue, 27 Jan 2004 22:45:08 +0000 (+0000) Subject: warning fix X-Git-Tag: v0.12.20~3064 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=94dcfb9e4db29b7ba311e1b4cd3c139a64a09fe3;p=lttv.git warning fix git-svn-id: http://ltt.polymtl.ca/svn@425 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/include/lttv/gtkdirsel.h b/ltt/branches/poly/include/lttv/gtkdirsel.h index 6b9318de..4c820c44 100644 --- a/ltt/branches/poly/include/lttv/gtkdirsel.h +++ b/ltt/branches/poly/include/lttv/gtkdirsel.h @@ -84,7 +84,7 @@ void gtk_dir_selection_show_fileop_buttons (GtkDirSelection *filesel); void gtk_dir_selection_hide_fileop_buttons (GtkDirSelection *filesel); gchar** gtk_dir_selection_get_selections (GtkDirSelection *filesel); -gchar * gtk_dir_selection_get_dir (GtkDirSelection *filesel); +const gchar * gtk_dir_selection_get_dir (GtkDirSelection *filesel); void gtk_dir_selection_set_select_multiple (GtkDirSelection *filesel, gboolean select_multiple); gboolean gtk_dir_selection_get_select_multiple (GtkDirSelection *filesel); diff --git a/ltt/branches/poly/lttv/modules/gui/main/src/callbacks.c b/ltt/branches/poly/lttv/modules/gui/main/src/callbacks.c index b198bf28..4c82c444 100644 --- a/ltt/branches/poly/lttv/modules/gui/main/src/callbacks.c +++ b/ltt/branches/poly/lttv/modules/gui/main/src/callbacks.c @@ -391,7 +391,7 @@ void add_trace(GtkWidget * widget, gpointer user_data) LttTrace *trace; LttvTrace * trace_v; LttvTraceset * traceset; - char * dir; + const char * dir; gint id; MainWindow * mw_data = get_window_data_struct(widget); GtkDirSelection * file_selector = (GtkDirSelection *)gtk_dir_selection_new("Select a trace"); diff --git a/ltt/branches/poly/lttv/modules/gui/main/src/gtkdirsel.c b/ltt/branches/poly/lttv/modules/gui/main/src/gtkdirsel.c index 92a8ab97..480563a7 100644 --- a/ltt/branches/poly/lttv/modules/gui/main/src/gtkdirsel.c +++ b/ltt/branches/poly/lttv/modules/gui/main/src/gtkdirsel.c @@ -2460,7 +2460,8 @@ gtk_dir_selection_dir_changed (GtkTreeSelection *selection, if (index != -1) { - gchar * err, str[256]; + const gchar * err; + gchar str[256]; err = gtk_label_get_text (GTK_LABEL (fs->selection_text)); err += 11; //pass over "Selection: " sprintf(str,"%s\0",err); @@ -4039,7 +4040,7 @@ cmpl_strerror (gint err) return g_strerror (err); } -gchar * gtk_dir_selection_get_dir (GtkDirSelection *filesel) +const gchar * gtk_dir_selection_get_dir (GtkDirSelection *filesel) { return gtk_entry_get_text (GTK_ENTRY (filesel->selection_entry)); }