songvec: songvec_delete takes a const Song pointer

We don't modify the Song when we delete it
This commit is contained in:
Eric Wong 2008-09-29 13:17:30 +02:00 committed by Max Kellermann
parent 71b332601a
commit 554f4a9fb9
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,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;

View File

@ -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);