From a5f8bb82300d08568180482c93e8b9a067cc715d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 5 Oct 2008 20:54:11 -0700 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/songvec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/songvec.c') diff --git a/src/songvec.c b/src/songvec.c index 579ac7033..969e67220 100644 --- a/src/songvec.c +++ b/src/songvec.c @@ -81,7 +81,7 @@ int songvec_write(struct songvec *sv, int fd, int extra) Song *song = *sp++; if (fdprintf(fd, SONG_KEY "%s\n", song->url) < 0) return -1; - if (printSongInfo(fd, song) < 0) + if (song_print_info(song, fd) < 0) return -1; if (fdprintf(fd, SONG_MTIME "%li\n", (long)song->mtime) < 0) @@ -92,7 +92,7 @@ int songvec_write(struct songvec *sv, int fd, int extra) return -1; } else { for (i = sv->nr; --i >= 0;) - if (printSongInfo(fd, *sp++) < 0) + if (song_print_info(*sp++, fd) < 0) return -1; } -- cgit v1.2.3