aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-07 13:39:19 +0200
committerEric Wong <normalperson@yhbt.net>2008-09-09 00:55:39 -0700
commite29a971c9619a6e988dceb5335645f7ae10a527e (patch)
tree166298cfb6e489e79726be71459bd3293867e1b4 /src/playlist.c
parent9e53c28046bae4a02387aba5ddaddc74f7bcf246 (diff)
downloadmpd-e29a971c9619a6e988dceb5335645f7ae10a527e.tar.gz
mpd-e29a971c9619a6e988dceb5335645f7ae10a527e.tar.xz
mpd-e29a971c9619a6e988dceb5335645f7ae10a527e.zip
playlist: showPlaylist() and shufflePlaylist() cannot fail
Make them both return void.
Diffstat (limited to 'src/playlist.c')
-rw-r--r--src/playlist.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/playlist.c b/src/playlist.c
index 6081f1fde..7d782c1a1 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -243,7 +243,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];
@@ -252,8 +252,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)
@@ -1256,7 +1254,7 @@ void previousSongInPlaylist(void)
play_order_num(prev_order_num, 0);
}
-int shufflePlaylist(mpd_unused int fd)
+void shufflePlaylist(mpd_unused int fd)
{
int i;
int ri;
@@ -1293,8 +1291,6 @@ int shufflePlaylist(mpd_unused int fd)
if (playlist_state == PLAYLIST_STATE_PLAY)
queueNextSongInPlaylist();
}
-
- return 0;
}
int deletePlaylist(int fd, const char *utf8file)