aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-10-07 22:06:59 +0200
committerMax Kellermann <max@duempel.org>2008-10-07 22:06:59 +0200
commite19f6905d9c209d7587177dbfdbc58869a2167cc (patch)
treecd48ac5c2df14517351de7fa00b4e30d316deca6 /src/playlist.c
parent0d34815f6cfe1a75467e7c8f9406ff15bcbe10ba (diff)
downloadmpd-e19f6905d9c209d7587177dbfdbc58869a2167cc.tar.gz
mpd-e19f6905d9c209d7587177dbfdbc58869a2167cc.tar.xz
mpd-e19f6905d9c209d7587177dbfdbc58869a2167cc.zip
song: replace printSong* with song_print_*
This make argument order more consistent for iterators. Additionally, these now return ssize_t results for error checking.
Diffstat (limited to 'src/playlist.c')
-rw-r--r--src/playlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/playlist.c b/src/playlist.c
index b6329cfde..96b170b0a 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -365,7 +365,7 @@ void readPlaylistState(FILE *fp)
static void printPlaylistSongInfo(struct client *client, int song)
{
- printSongInfo(client, playlist.songs[song]);
+ song_print_info(client, playlist.songs[song]);
client_printf(client, "Pos: %i\nId: %i\n", song, playlist.positionToId[song]);
}
@@ -1360,7 +1360,7 @@ int PlaylistInfo(struct client *client, const char *utf8file, int detail)
if (detail) {
Song *song = getSongFromDB(temp);
if (song) {
- printSongInfo(client, song);
+ song_print_info(client, song);
wrote = 1;
}
}