aboutsummaryrefslogtreecommitdiffstats
path: root/src/dbUtils.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-07 13:44:12 +0200
committerEric Wong <normalperson@yhbt.net>2008-09-09 01:11:00 -0700
commit38526852f3c40a6014f86b832b37d31507f6131b (patch)
treef8eddfff4a11598c0e5cf6f465e4a08af3be644b /src/dbUtils.c
parent6dcd7fea0e3cfc8f51097f11c0c84793584e8f0b (diff)
downloadmpd-38526852f3c40a6014f86b832b37d31507f6131b.tar.gz
mpd-38526852f3c40a6014f86b832b37d31507f6131b.tar.xz
mpd-38526852f3c40a6014f86b832b37d31507f6131b.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 ff184dc49..c330f2ce2 100644
--- a/src/dbUtils.c
+++ b/src/dbUtils.c
@@ -179,11 +179,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)