From 38fdf10851fae4204b0be424c0b79ee9271033b2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 2 Oct 2008 15:20:18 +0200 Subject: strfsong: constant pointers Pass constant pointers to strfsong() and screen_lyrics_load(). --- src/screen_lyrics.c | 2 +- src/strfsong.c | 5 +++-- src/strfsong.h | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src') 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 #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 -- cgit v1.2.3