changeset 620:0f2b7b2556ff

Constify some variables.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 02 Sep 2007 23:09:05 +0000
parents 6f9c5bb127e6
children 11e24183ff23
files src/xs_config.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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;