aboutsummaryrefslogtreecommitdiffstats
path: root/src/strfsong.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/strfsong.c')
-rw-r--r--src/strfsong.c10
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;