summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7db4280)
raw | patch | inline | side by side (parent: 7db4280)
author | Max Kellermann <max@duempel.org> | |
Thu, 2 Oct 2008 13:20:18 +0000 (15:20 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Thu, 2 Oct 2008 13:20:18 +0000 (15:20 +0200) |
Pass constant pointers to strfsong() and screen_lyrics_load().
src/screen_lyrics.c | patch | blob | history | |
src/strfsong.c | patch | blob | history | |
src/strfsong.h | patch | blob | history |
diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c
index ec552ee3326d94117712d887561913d017bb689b..dbfe4ea6feaedbb671758f583024f443a0603e43 100644 (file)
--- a/src/screen_lyrics.c
+++ b/src/screen_lyrics.c
}
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 523c30da25a42319322e13e1365ecae4a3b0fbbc..f6b67930e91112856ccc8652f3f9b59e9a3275e0 100644 (file)
--- a/src/strfsong.c
+++ b/src/strfsong.c
_strfsong(gchar *s,
gsize max,
const gchar *format,
- mpd_Song *song,
+ const struct mpd_song *song,
const gchar **last)
{
const gchar *p, *end;
}
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 7c0361d9c2acc7cfa5836975fcef605194f0b182..7770a86983e152569ed7f2fae4766ade83b37ae3 100644 (file)
--- a/src/strfsong.h
+++ b/src/strfsong.h
#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