diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-08-06 18:42:07 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-08-06 18:42:07 +0000 |
commit | b003633f3bc22bf99d9c1afcddb3b27ecffc9b30 (patch) | |
tree | b9abb9f58ade6cc745c599f5954408e9ecc37071 | |
parent | 23b2341a9ba84d042d409132019b9203ea597549 (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.c | 4 | ||||
-rw-r--r-- | filters.h | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -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; @@ -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); |