diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-09-28 19:22:38 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-09-28 19:38:38 -0700 |
commit | 2470476a2dba60977cb2f982c031af0d4d49d363 (patch) | |
tree | 85397ec830f30b2f75cf66105b5e2dba1ed84f53 /src | |
parent | 9fb0f4f7cc3e4b2e1fb203a1949799a6018fb57b (diff) | |
download | mpd-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.c | 2 | ||||
-rw-r--r-- | src/playlist.h | 2 |
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); |