diff options
author | Max Kellermann <max@duempel.org> | 2008-09-07 13:39:31 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-07 13:39:31 +0200 |
commit | 8d2830b3f9ab52e1b2dd54d82ae3aaf39e61abe8 (patch) | |
tree | 84f58989cf38f05cd9d55f4bc55bd1ce916d4958 /src/dbUtils.c | |
parent | 20feb0cbbab3c1516f0309a87c3d27f9801c7938 (diff) | |
download | mpd-8d2830b3f9ab52e1b2dd54d82ae3aaf39e61abe8.tar.gz mpd-8d2830b3f9ab52e1b2dd54d82ae3aaf39e61abe8.tar.xz mpd-8d2830b3f9ab52e1b2dd54d82ae3aaf39e61abe8.zip |
playlist: don't pass "fd" to playlist.c functions
The playlist library shouldn't talk to the client if possible.
Introduce the "enum playlist_result" type which the caller
(i.e. command.c) may use to generate an error message.
Diffstat (limited to 'src/dbUtils.c')
-rw-r--r-- | src/dbUtils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dbUtils.c b/src/dbUtils.c index 73078293c..1dfdf6709 100644 --- a/src/dbUtils.c +++ b/src/dbUtils.c @@ -174,10 +174,10 @@ int printAllIn(int fd, const char *name) printDirectoryInDirectory, NULL); } -static int directoryAddSongToPlaylist(int fd, Song * song, +static int directoryAddSongToPlaylist(mpd_unused int fd, Song * song, mpd_unused void *data) { - return addSongToPlaylist(fd, song, NULL); + return addSongToPlaylist(song, NULL); } static int directoryAddSongToStoredPlaylist(int fd, Song *song, void *data) |