aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-02 15:20:18 +0200
committerMax Kellermann <max@duempel.org>2008-10-02 15:20:18 +0200
commit38fdf10851fae4204b0be424c0b79ee9271033b2 (patch)
treebce8818dd19fb95280e557ff5645585f19cb0fea
parent7db42801fd3cbcb8d05ca7bd7ad9570a3071b378 (diff)
downloadmpd-38fdf10851fae4204b0be424c0b79ee9271033b2.tar.gz
mpd-38fdf10851fae4204b0be424c0b79ee9271033b2.tar.xz
mpd-38fdf10851fae4204b0be424c0b79ee9271033b2.zip
strfsong: constant pointers
Pass constant pointers to strfsong() and screen_lyrics_load().
Diffstat (limited to '')
-rw-r--r--src/screen_lyrics.c2
-rw-r--r--src/strfsong.c5
-rw-r--r--src/strfsong.h3
3 files changed, 6 insertions, 4 deletions
diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c
index ec552ee33..dbfe4ea6f 100644
--- a/src/screen_lyrics.c
+++ b/src/screen_lyrics.c
@@ -164,7 +164,7 @@ screen_lyrics_callback(const GString *result, mpd_unused void *data)
}
static void
-screen_lyrics_load(struct mpd_song *song)
+screen_lyrics_load(const struct mpd_song *song)
{
char buffer[MAX_SONGNAME_LENGTH];
diff --git a/src/strfsong.c b/src/strfsong.c
index 523c30da2..f6b67930e 100644
--- a/src/strfsong.c
+++ b/src/strfsong.c
@@ -54,7 +54,7 @@ static gsize
_strfsong(gchar *s,
gsize max,
const gchar *format,
- mpd_Song *song,
+ const struct mpd_song *song,
const gchar **last)
{
const gchar *p, *end;
@@ -216,7 +216,8 @@ _strfsong(gchar *s,
}
gsize
-strfsong(gchar *s, gsize max, const gchar *format, mpd_Song *song)
+strfsong(gchar *s, gsize max, const gchar *format,
+ const struct mpd_song *song)
{
return _strfsong(s, max, format, song, NULL);
}
diff --git a/src/strfsong.h b/src/strfsong.h
index 7c0361d9c..7770a8698 100644
--- a/src/strfsong.h
+++ b/src/strfsong.h
@@ -4,6 +4,7 @@
#include <glib.h>
#include "libmpdclient.h"
-gsize strfsong(gchar *s, gsize max, const gchar *format, mpd_Song *song);
+gsize strfsong(gchar *s, gsize max, const gchar *format,
+ const struct mpd_song *song);
#endif