songvec: songvec_delete takes a const Song pointer
We don't modify the Song when we delete it
This commit is contained in:

committed by
Max Kellermann

parent
71b332601a
commit
554f4a9fb9
@@ -29,7 +29,7 @@ Song *songvec_find(struct songvec *sv, const char *url)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
int songvec_delete(struct songvec *sv, Song *del)
|
int songvec_delete(struct songvec *sv, const Song *del)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@@ -13,7 +13,7 @@ void songvec_sort(struct songvec *sv);
|
|||||||
|
|
||||||
Song *songvec_find(struct songvec *sv, const char *url);
|
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);
|
void songvec_add(struct songvec *sv, Song *add);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user