aboutsummaryrefslogtreecommitdiff
path: root/src/playlist.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-07 13:39:19 +0200
committerMax Kellermann <max@duempel.org>2008-09-07 13:39:19 +0200
commit20feb0cbbab3c1516f0309a87c3d27f9801c7938 (patch)
tree8dbfb88a60c022d877edc1f2e677e7a147f4fa30 /src/playlist.c
parente1bf96672e8ef46b4ed20eba2c91efa048c4789c (diff)
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 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)