aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-09-29 13:17:37 +0200
committerMax Kellermann <max@duempel.org>2008-09-29 13:17:37 +0200
commit9819890f1dfe1bcb128f9857efd26f37b1a601ee (patch)
treedcfbcdb59291e01c9205b3b5a9463e49c1f63d09 /src
parent554f4a9fb96f9670bf1099cbe0a578c22d6d0458 (diff)
downloadmpd-9819890f1dfe1bcb128f9857efd26f37b1a601ee.tar.gz
mpd-9819890f1dfe1bcb128f9857efd26f37b1a601ee.tar.xz
mpd-9819890f1dfe1bcb128f9857efd26f37b1a601ee.zip
playlist: deleteASongFromPlaylist takes a const Song *
We don't change the song pointer there, either.
Diffstat (limited to '')
-rw-r--r--src/playlist.c2
-rw-r--r--src/playlist.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/playlist.c b/src/playlist.c
index 296b2689b..233e434b7 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -775,7 +775,7 @@ enum playlist_result deleteFromPlaylistById(int id)
return deleteFromPlaylist(song);
}
-void deleteASongFromPlaylist(Song * song)
+void deleteASongFromPlaylist(const Song * song)
{
int i;
diff --git a/src/playlist.h b/src/playlist.h
index f6a8e77ba..8d964aabd 100644
--- a/src/playlist.h
+++ b/src/playlist.h
@@ -101,7 +101,7 @@ enum playlist_result savePlaylist(const char *utf8file);
enum playlist_result deletePlaylist(const char *utf8file);
-void deleteASongFromPlaylist(Song * song);
+void deleteASongFromPlaylist(const Song * song);
enum playlist_result moveSongInPlaylist(int from, int to);