aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-09-29 13:17:30 +0200
committerMax Kellermann <max@duempel.org>2008-09-29 13:17:30 +0200
commit554f4a9fb96f9670bf1099cbe0a578c22d6d0458 (patch)
tree16e24f9567d759986c8e4659915698e205820380
parent71b332601a3bcd3ebc91b564885da0f54edff764 (diff)
downloadmpd-554f4a9fb96f9670bf1099cbe0a578c22d6d0458.tar.gz
mpd-554f4a9fb96f9670bf1099cbe0a578c22d6d0458.tar.xz
mpd-554f4a9fb96f9670bf1099cbe0a578c22d6d0458.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.c2
-rw-r--r--src/songvec.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/songvec.c b/src/songvec.c
index 578766bcc..8e3b9b955 100644
--- a/src/songvec.c
+++ b/src/songvec.c
@@ -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;
diff --git a/src/songvec.h b/src/songvec.h
index e374798be..47b5ea6c0 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);