diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-10-07 22:06:59 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-07 22:06:59 +0200 |
commit | e19f6905d9c209d7587177dbfdbc58869a2167cc (patch) | |
tree | cd48ac5c2df14517351de7fa00b4e30d316deca6 /src/song_print.c | |
parent | 0d34815f6cfe1a75467e7c8f9406ff15bcbe10ba (diff) | |
download | mpd-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/song_print.c')
-rw-r--r-- | src/song_print.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/song_print.c b/src/song_print.c index f754f2348..3b4275472 100644 --- a/src/song_print.c +++ b/src/song_print.c @@ -22,7 +22,7 @@ #include "tag_print.h" #include "client.h" -void printSongUrl(struct client *client, Song * song) +void song_print_url(struct client *client, Song * song) { if (song->parentDir && song->parentDir->path) { client_printf(client, "%s%s/%s\n", SONG_FILE, @@ -32,9 +32,9 @@ void printSongUrl(struct client *client, Song * song) } } -int printSongInfo(struct client *client, Song * song) +int song_print_info(struct client *client, Song * song) { - printSongUrl(client, song); + song_print_url(client, song); if (song->tag) tag_print(client, song->tag); @@ -48,7 +48,7 @@ int songvec_print(struct client *client, const struct songvec *sv) Song **sp = sv->base; for (i = sv->nr; --i >= 0;) - if (printSongInfo(client, *sp++) < 0) + if (song_print_info(client, *sp++) < 0) return -1; return 0; |