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.h | |
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 '')
-rw-r--r-- | src/utils.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils.h b/src/utils.h index a7f81bf1a..fe913afce 100644 --- a/src/utils.h +++ b/src/utils.h @@ -4,8 +4,8 @@ /* functions for lists containing strings */ GList *string_list_free(GList *string_list); -GList *string_list_find(GList *string_list, gchar *str); -GList *string_list_remove(GList *string_list, gchar *str); +GList *string_list_find(GList *string_list, const gchar *str); +GList *string_list_remove(GList *string_list, const gchar *str); /* create a string list from path - used for completion */ #define GCMP_TYPE_DIR (0x01 << 0) @@ -15,7 +15,7 @@ GList *string_list_remove(GList *string_list, gchar *str); #define GCMP_TYPE_RPLAYLIST (GCMP_TYPE_DIR | GCMP_TYPE_PLAYLIST) GList *gcmp_list_from_path(mpdclient_t *c, - gchar *path, + const gchar *path, GList *list, gint types); |