diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-09-28 19:17:00 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-09-28 19:38:38 -0700 |
commit | 9fb0f4f7cc3e4b2e1fb203a1949799a6018fb57b (patch) | |
tree | ef99e053af93be06d601ad2dd8b1f892b1ab7008 | |
parent | 9112a16f0404908f381aa341a00e1fae26e61831 (diff) | |
download | mpd-9fb0f4f7cc3e4b2e1fb203a1949799a6018fb57b.tar.gz mpd-9fb0f4f7cc3e4b2e1fb203a1949799a6018fb57b.tar.xz mpd-9fb0f4f7cc3e4b2e1fb203a1949799a6018fb57b.zip |
songvec: songvec_delete takes a const Song pointer
We don't modify the Song when we delete it
Diffstat (limited to '')
-rw-r--r-- | src/songvec.c | 2 | ||||
-rw-r--r-- | src/songvec.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/songvec.c b/src/songvec.c index 7ce1285f6..579ac7033 100644 --- a/src/songvec.c +++ b/src/songvec.c @@ -30,7 +30,7 @@ Song *songvec_find(struct songvec *sv, const char *url) return NULL; } -int songvec_delete(struct songvec *sv, Song *del) +int songvec_delete(struct songvec *sv, const Song *del) { int i; diff --git a/src/songvec.h b/src/songvec.h index b823724e7..fb5c38c8b 100644 --- a/src/songvec.h +++ b/src/songvec.h @@ -13,7 +13,7 @@ void songvec_sort(struct songvec *sv); Song *songvec_find(struct songvec *sv, const char *url); -int songvec_delete(struct songvec *sv, Song *del); +int songvec_delete(struct songvec *sv, const Song *del); void songvec_add(struct songvec *sv, Song *add); |