diff options
author | Max Kellermann <max@duempel.org> | 2008-09-07 13:39:31 +0200 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-09-09 01:03:33 -0700 |
commit | 6dcd7fea0e3cfc8f51097f11c0c84793584e8f0b (patch) | |
tree | cea563abd8d942ff658459ea0bab0a9af8182e67 /src/dbUtils.c | |
parent | e29a971c9619a6e988dceb5335645f7ae10a527e (diff) | |
download | mpd-6dcd7fea0e3cfc8f51097f11c0c84793584e8f0b.tar.gz mpd-6dcd7fea0e3cfc8f51097f11c0c84793584e8f0b.tar.xz mpd-6dcd7fea0e3cfc8f51097f11c0c84793584e8f0b.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 8c499ec7e..ff184dc49 100644 --- a/src/dbUtils.c +++ b/src/dbUtils.c @@ -173,10 +173,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) |