aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-09-28 19:22:38 -0700
committerEric Wong <normalperson@yhbt.net>2008-09-28 19:38:38 -0700
commit2470476a2dba60977cb2f982c031af0d4d49d363 (patch)
tree85397ec830f30b2f75cf66105b5e2dba1ed84f53 /src
parent9fb0f4f7cc3e4b2e1fb203a1949799a6018fb57b (diff)
downloadmpd-2470476a2dba60977cb2f982c031af0d4d49d363.tar.gz
mpd-2470476a2dba60977cb2f982c031af0d4d49d363.tar.xz
mpd-2470476a2dba60977cb2f982c031af0d4d49d363.zip
playlist: deleteASongFromPlaylist takes a const Song *
We don't change the song pointer there, either.
Diffstat (limited to 'src')
-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 0e35bfbdb..af0aaccc0 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -825,7 +825,7 @@ enum playlist_result deleteFromPlaylistById(int id)
return deleteFromPlaylist(playlist.idToPosition[id]);
}
-void deleteASongFromPlaylist(Song * song)
+void deleteASongFromPlaylist(const Song * song)
{
int i;
diff --git a/src/playlist.h b/src/playlist.h
index 560a4d1e2..6b5fe0cd7 100644
--- a/src/playlist.h
+++ b/src/playlist.h
@@ -92,7 +92,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);