aboutsummaryrefslogtreecommitdiffstats
path: root/src/dbUtils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dbUtils.c')
-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)