Commit 554f4a9f authored by Eric Wong's avatar Eric Wong Committed by Max Kellermann

songvec: songvec_delete takes a const Song pointer

We don't modify the Song when we delete it
parent 71b33260
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment