# HG changeset patch # User Matti Hamalainen # Date 1188774545 0 # Node ID 0f2b7b2556ff78ccda7aee4491f45618fa40d81c # Parent 6f9c5bb127e6ad4a9990307f52a35267ed58c9b0 Constify some variables. diff -r 6f9c5bb127e6 -r 0f2b7b2556ff src/xs_config.c --- a/src/xs_config.c Sun Sep 02 22:13:05 2007 +0000 +++ b/src/xs_config.c Sun Sep 02 23:09:05 2007 +0000 @@ -395,7 +395,7 @@ return (inLine[*linePos] == sep); } -static gboolean xs_filters_import(gchar *pcFilename, t_xs_sid2_filter **pFilters, gint *nFilters) +static gboolean xs_filters_import(const gchar *pcFilename, t_xs_sid2_filter **pFilters, gint *nFilters) { FILE *inFile; gchar inLine[XS_BUF_SIZE], tmpStr[XS_BUF_SIZE]; @@ -471,7 +471,7 @@ } -static gboolean xs_filters_export(gchar *pcFilename, t_xs_sid2_filter **pFilters, gint nFilters) +static gboolean xs_filters_export(const gchar *pcFilename, t_xs_sid2_filter **pFilters, gint nFilters) { FILE *outFile; t_xs_sid2_filter *f; @@ -904,7 +904,7 @@ void xs_cfg_sp2_filter_load(GtkButton *button, gpointer user_data) { - gchar *tmpStr; + const gchar *tmpStr; gint i, j; (void) button; @@ -943,7 +943,7 @@ 2) save current filter to the name */ - gchar *tmpStr; + const gchar *tmpStr; gint i, j; (void) button; @@ -999,7 +999,7 @@ void xs_filter_import_fs_ok(GtkButton *button, gpointer user_data) { - gchar *tmpStr; + const gchar *tmpStr; (void) button; (void) user_data; @@ -1038,7 +1038,7 @@ void xs_filter_export_fs_ok(GtkButton *button, gpointer user_data) { - gchar *tmpStr; + const gchar *tmpStr; (void) button; (void) user_data;