From 20feb0cbbab3c1516f0309a87c3d27f9801c7938 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 7 Sep 2008 13:39:19 +0200 Subject: playlist: showPlaylist() and shufflePlaylist() cannot fail Make them both return void. --- src/playlist.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/playlist.c') diff --git a/src/playlist.c b/src/playlist.c index 06df43fc..193989bd 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -217,7 +217,7 @@ int clearStoredPlaylist(int fd, const char *utf8file) return removeAllFromStoredPlaylistByPath(fd, utf8file); } -int showPlaylist(int fd) +void showPlaylist(int fd) { int i; char path_max_tmp[MPD_PATH_MAX]; @@ -226,8 +226,6 @@ int showPlaylist(int fd) fdprintf(fd, "%i:%s\n", i, get_song_url(path_max_tmp, playlist.songs[i])); } - - return 0; } void savePlaylistState(FILE *fp) @@ -1224,7 +1222,7 @@ void previousSongInPlaylist(void) } } -int shufflePlaylist(mpd_unused int fd) +void shufflePlaylist(mpd_unused int fd) { int i; int ri; @@ -1253,8 +1251,6 @@ int shufflePlaylist(mpd_unused int fd) incrPlaylistVersion(); } - - return 0; } int deletePlaylist(int fd, const char *utf8file) -- cgit v1.2.3