From e19f6905d9c209d7587177dbfdbc58869a2167cc Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 7 Oct 2008 22:06:59 +0200 Subject: song: replace printSong* with song_print_* This make argument order more consistent for iterators. Additionally, these now return ssize_t results for error checking. --- src/song_print.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/song_print.c') 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; -- cgit v1.2.3