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/strfsong.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/strfsong.c')
-rw-r--r-- | src/strfsong.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/strfsong.c b/src/strfsong.c index 27eadb236..22f2e2e6d 100644 --- a/src/strfsong.c +++ b/src/strfsong.c @@ -34,8 +34,8 @@ #include "support.h" #include "strfsong.h" -static gchar * -skip(gchar * p) +static const gchar * +skip(const gchar * p) { gint stack = 0; @@ -62,9 +62,9 @@ _strfsong(gchar *s, gsize max, const gchar *format, mpd_Song *song, - gchar **last) + const gchar **last) { - gchar *p, *end; + const gchar *p, *end; gchar *temp; gsize n, length = 0; gboolean found = FALSE; @@ -73,7 +73,7 @@ _strfsong(gchar *s, if( song==NULL ) return 0; - for (p = (gchar *)format; *p != '\0' && length<max;) { + for (p = format; *p != '\0' && length<max;) { /* OR */ if (p[0] == '|') { ++p; |