diff options
author | Max Kellermann <max@duempel.org> | 2008-09-15 12:27:28 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-15 12:27:28 +0200 |
commit | 0b3bcb6c7f1bb4a633896b8a9936e498570ef8e1 (patch) | |
tree | 611b143eb0834c892246f8b31311e9224977c952 /src/utils.c | |
parent | 1f0ff952055c920c8671a1587c622e4df8b4a99d (diff) | |
download | mpd-0b3bcb6c7f1bb4a633896b8a9936e498570ef8e1.tar.gz mpd-0b3bcb6c7f1bb4a633896b8a9936e498570ef8e1.tar.xz mpd-0b3bcb6c7f1bb4a633896b8a9936e498570ef8e1.zip |
const pointers
Convert pointers to const whenever it is possible. Fixes all those
-Wconst warnings.
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils.c b/src/utils.c index 014136480..5f7f5ef1a 100644 --- a/src/utils.c +++ b/src/utils.c @@ -48,7 +48,7 @@ string_list_free(GList *string_list) } GList * -string_list_find(GList *string_list, gchar *str) +string_list_find(GList *string_list, const gchar *str) { GList *list = g_list_first(string_list); @@ -61,7 +61,7 @@ string_list_find(GList *string_list, gchar *str) } GList * -string_list_remove(GList *string_list, gchar *str) +string_list_remove(GList *string_list, const gchar *str) { GList *list = g_list_first(string_list); @@ -78,7 +78,7 @@ string_list_remove(GList *string_list, gchar *str) /* create a list suiteble for GCompletion from path */ GList * -gcmp_list_from_path(mpdclient_t *c, gchar *path, GList *list, gint types) +gcmp_list_from_path(mpdclient_t *c, const gchar *path, GList *list, gint types) { GList *flist = NULL; mpdclient_filelist_t *filelist; |