aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.c
diff options
context:
space:
mode:
authorAvuton Olrich <avuton@gmail.com>2006-08-20 00:50:44 +0000
committerAvuton Olrich <avuton@gmail.com>2006-08-20 00:50:44 +0000
commitf79a70d1b9bab78fca515ac9142607ce2414e333 (patch)
tree9b851a6298a000e1feee859f430c9ccc5c297ddd /src/playlist.c
parent9caade4eb11bc930f618650918db8b60b912c961 (diff)
downloadmpd-f79a70d1b9bab78fca515ac9142607ce2414e333.tar.gz
mpd-f79a70d1b9bab78fca515ac9142607ce2414e333.tar.xz
mpd-f79a70d1b9bab78fca515ac9142607ce2414e333.zip
Fix warnings for -Wmissing-prototypes
Add -Wmissing-prototypes if compiling with gcc Static where possible git-svn-id: https://svn.musicpd.org/mpd/trunk@4657 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/playlist.c')
-rw-r--r--src/playlist.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/playlist.c b/src/playlist.c
index 80c50f5b5..8671e6596 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -385,7 +385,7 @@ void readPlaylistState(FILE *fp)
}
}
-void printPlaylistSongInfo(int fd, int song)
+static void printPlaylistSongInfo(int fd, int song)
{
printSongInfo(fd, playlist.songs[song]);
fdprintf(fd, "Pos: %i\nId: %i\n", song, playlist.positionToId[song]);
@@ -472,7 +472,7 @@ int playlistId(int fd, int id)
return 0;
}
-void swapSongs(int song1, int song2)
+static void swapSongs(int song1, int song2)
{
Song *sTemp;
int iTemp;
@@ -492,7 +492,7 @@ void swapSongs(int song1, int song2)
playlist.positionToId[song2] = iTemp;
}
-void queueNextSongInPlaylist(void)
+static void queueNextSongInPlaylist(void)
{
if (playlist.current < playlist.length - 1) {
playlist.queued = playlist.current + 1;
@@ -522,7 +522,7 @@ void queueNextSongInPlaylist(void)
}
}
-void syncPlaylistWithQueue(int queue)
+static void syncPlaylistWithQueue(int queue)
{
if (queue && getPlayerQueueState() == PLAYER_QUEUE_BLANK) {
queueNextSongInPlaylist();
@@ -543,7 +543,7 @@ void syncPlaylistWithQueue(int queue)
}
}
-void lockPlaylistInteraction(void)
+static void lockPlaylistInteraction(void)
{
if (getPlayerQueueState() == PLAYER_QUEUE_PLAY ||
getPlayerQueueState() == PLAYER_QUEUE_FULL) {
@@ -557,7 +557,7 @@ static void unlockPlaylistInteraction(void)
playerQueueUnlock();
}
-void clearPlayerQueue(void)
+static void clearPlayerQueue(void)
{
playlist.queued = -1;
switch (getPlayerQueueState()) {
@@ -901,7 +901,7 @@ int playPlaylistById(int fd, int id, int stopOnError)
return playPlaylist(fd, playlist.idToPosition[id], stopOnError);
}
-void syncCurrentPlayerDecodeMetadata(void)
+static void syncCurrentPlayerDecodeMetadata(void)
{
Song *songPlayer = playerCurrentDecodeSong();
Song *song;
@@ -940,7 +940,7 @@ void syncPlayerAndPlaylist(void)
syncCurrentPlayerDecodeMetadata();
}
-int currentSongInPlaylist(int fd)
+static int currentSongInPlaylist(int fd)
{
if (playlist_state != PLAYLIST_STATE_PLAY)
return 0;