aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-08-06 18:42:07 +0000
committerGuy Harris <guy@alum.mit.edu>2005-08-06 18:42:07 +0000
commitb003633f3bc22bf99d9c1afcddb3b27ecffc9b30 (patch)
treeb9abb9f58ade6cc745c599f5954408e9ecc37071
parent23b2341a9ba84d042d409132019b9203ea597549 (diff)
"read_filter_list()" and "save_filter_list()" mallocate the path string
that they return through the "pref_path_return" argument; make it a "char **", as a pointer to a "char *" is passed to it, and the caller has to free that. svn path=/trunk/; revision=15249
-rw-r--r--filters.c4
-rw-r--r--filters.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/filters.c b/filters.c
index 86f570c520..e8aa3cb33f 100644
--- a/filters.c
+++ b/filters.c
@@ -78,7 +78,7 @@ static GList *display_filters = NULL;
#define INIT_BUF_SIZE 128
void
-read_filter_list(filter_list_type_t list, const char **pref_path_return,
+read_filter_list(filter_list_type_t list, char **pref_path_return,
int *errno_return)
{
const char *ff_name;
@@ -423,7 +423,7 @@ remove_from_filter_list(filter_list_type_t list, GList *fl_entry)
* and "*errno_return" is set to the error.
*/
void
-save_filter_list(filter_list_type_t list, const char **pref_path_return,
+save_filter_list(filter_list_type_t list, char **pref_path_return,
int *errno_return)
{
const gchar *ff_name;
diff --git a/filters.h b/filters.h
index 239b775679..d059c8cc80 100644
--- a/filters.h
+++ b/filters.h
@@ -47,7 +47,7 @@ typedef struct {
* the file we tried to read - it should be freed by our caller -
* and "*errno_return" is set to the error.
*/
-void read_filter_list(filter_list_type_t list, const char **pref_path_return,
+void read_filter_list(filter_list_type_t list, char **pref_path_return,
int *errno_return);
/*
@@ -75,5 +75,5 @@ void remove_from_filter_list(filter_list_type_t list, GList *fl_entry);
* the file we tried to read - it should be freed by our caller -
* and "*errno_return" is set to the error.
*/
-void save_filter_list(filter_list_type_t list, const char **pref_path_return,
+void save_filter_list(filter_list_type_t list, char **pref_path_return,
int *errno_return);