diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-10-05 20:54:11 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-10-05 21:34:25 -0700 |
commit | a5f8bb82300d08568180482c93e8b9a067cc715d (patch) | |
tree | e8de505f76c6d405abdfd9064a9804e952e832e5 /src/songvec.c | |
parent | c344fa6a506d117f1e4c9a6213c5c94937631ff9 (diff) | |
download | mpd-a5f8bb82300d08568180482c93e8b9a067cc715d.tar.gz mpd-a5f8bb82300d08568180482c93e8b9a067cc715d.tar.xz mpd-a5f8bb82300d08568180482c93e8b9a067cc715d.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 '')
-rw-r--r-- | src/songvec.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |