comparison src/xs_config.c @ 620:0f2b7b2556ff

Constify some variables.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 02 Sep 2007 23:09:05 +0000
parents 1776da045588
children 11e24183ff23
comparison
equal deleted inserted replaced
619:6f9c5bb127e6 620:0f2b7b2556ff
393 tmpStr[i] = 0; 393 tmpStr[i] = 0;
394 xs_findnext(inLine, linePos); 394 xs_findnext(inLine, linePos);
395 return (inLine[*linePos] == sep); 395 return (inLine[*linePos] == sep);
396 } 396 }
397 397
398 static gboolean xs_filters_import(gchar *pcFilename, t_xs_sid2_filter **pFilters, gint *nFilters) 398 static gboolean xs_filters_import(const gchar *pcFilename, t_xs_sid2_filter **pFilters, gint *nFilters)
399 { 399 {
400 FILE *inFile; 400 FILE *inFile;
401 gchar inLine[XS_BUF_SIZE], tmpStr[XS_BUF_SIZE]; 401 gchar inLine[XS_BUF_SIZE], tmpStr[XS_BUF_SIZE];
402 gchar *sectName = NULL; 402 gchar *sectName = NULL;
403 gboolean sectBegin; 403 gboolean sectBegin;
469 fclose(inFile); 469 fclose(inFile);
470 return TRUE; 470 return TRUE;
471 } 471 }
472 472
473 473
474 static gboolean xs_filters_export(gchar *pcFilename, t_xs_sid2_filter **pFilters, gint nFilters) 474 static gboolean xs_filters_export(const gchar *pcFilename, t_xs_sid2_filter **pFilters, gint nFilters)
475 { 475 {
476 FILE *outFile; 476 FILE *outFile;
477 t_xs_sid2_filter *f; 477 t_xs_sid2_filter *f;
478 gint n; 478 gint n;
479 479
902 } 902 }
903 903
904 904
905 void xs_cfg_sp2_filter_load(GtkButton *button, gpointer user_data) 905 void xs_cfg_sp2_filter_load(GtkButton *button, gpointer user_data)
906 { 906 {
907 gchar *tmpStr; 907 const gchar *tmpStr;
908 gint i, j; 908 gint i, j;
909 909
910 (void) button; 910 (void) button;
911 (void) user_data; 911 (void) user_data;
912 912
941 yes) ask if saving over ok? 941 yes) ask if saving over ok?
942 no) ... 942 no) ...
943 943
944 2) save current filter to the name 944 2) save current filter to the name
945 */ 945 */
946 gchar *tmpStr; 946 const gchar *tmpStr;
947 gint i, j; 947 gint i, j;
948 948
949 (void) button; 949 (void) button;
950 (void) user_data; 950 (void) user_data;
951 951
997 } 997 }
998 998
999 999
1000 void xs_filter_import_fs_ok(GtkButton *button, gpointer user_data) 1000 void xs_filter_import_fs_ok(GtkButton *button, gpointer user_data)
1001 { 1001 {
1002 gchar *tmpStr; 1002 const gchar *tmpStr;
1003 (void) button; 1003 (void) button;
1004 (void) user_data; 1004 (void) user_data;
1005 1005
1006 XS_MUTEX_LOCK(xs_cfg); 1006 XS_MUTEX_LOCK(xs_cfg);
1007 1007
1036 } 1036 }
1037 1037
1038 1038
1039 void xs_filter_export_fs_ok(GtkButton *button, gpointer user_data) 1039 void xs_filter_export_fs_ok(GtkButton *button, gpointer user_data)
1040 { 1040 {
1041 gchar *tmpStr; 1041 const gchar *tmpStr;
1042 (void) button; 1042 (void) button;
1043 (void) user_data; 1043 (void) user_data;
1044 1044
1045 XS_MUTEX_LOCK(xs_cfg); 1045 XS_MUTEX_LOCK(xs_cfg);
1046 1046