songvec: songvec_delete takes a const Song pointer
We don't modify the Song when we delete it
This commit is contained in:
parent
71b332601a
commit
554f4a9fb9
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue