aboutsummaryrefslogtreecommitdiffstats
path: root/src/dbUtils.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-07 13:44:12 +0200
committerMax Kellermann <max@duempel.org>2008-09-07 13:44:12 +0200
commita8b225f947fc2d5e464222ea9b535c49fbce9ac9 (patch)
treed729d63421e38d9223771729a2fa9b862e94aab0 /src/dbUtils.c
parent8d2830b3f9ab52e1b2dd54d82ae3aaf39e61abe8 (diff)
downloadmpd-a8b225f947fc2d5e464222ea9b535c49fbce9ac9.tar.gz
mpd-a8b225f947fc2d5e464222ea9b535c49fbce9ac9.tar.xz
mpd-a8b225f947fc2d5e464222ea9b535c49fbce9ac9.zip
playlist: don't pass "fd" to storedPlaylist.c functions
Return an "enum playlist_result" value instead of calling commandError() in storedPlaylist.c.
Diffstat (limited to '')
-rw-r--r--src/dbUtils.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/dbUtils.c b/src/dbUtils.c
index 1dfdf6709..751667b58 100644
--- a/src/dbUtils.c
+++ b/src/dbUtils.c
@@ -180,11 +180,10 @@ static int directoryAddSongToPlaylist(mpd_unused int fd, Song * song,
return addSongToPlaylist(song, NULL);
}
-static int directoryAddSongToStoredPlaylist(int fd, Song *song, void *data)
+static int directoryAddSongToStoredPlaylist(mpd_unused int fd, Song *song,
+ void *data)
{
- if (appendSongToStoredPlaylistByPath(fd, (char *)data, song) != 0)
- return -1;
- return 0;
+ return appendSongToStoredPlaylistByPath((char *)data, song);
}
int addAllIn(int fd, const char *name)