diff options
author | Max Kellermann <max@duempel.org> | 2008-10-07 22:09:55 +0200 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-10-11 19:21:48 -0700 |
commit | b0364ba70de4d85d4d6ea510235982a024978305 (patch) | |
tree | d5324aa1dc45cd4ed1b56faa5c803b6b5b4cfa92 /src | |
parent | a76121ea81f452c0d5e21d6a2fb6f200a80faf7b (diff) | |
download | mpd-b0364ba70de4d85d4d6ea510235982a024978305.tar.gz mpd-b0364ba70de4d85d4d6ea510235982a024978305.tar.xz mpd-b0364ba70de4d85d4d6ea510235982a024978305.zip |
songvec: pass const pointers
Pass const songvec pointers to songvec_find() and songvec_for_each().
[ew: already merged songvec_for_each() cosntification somewhere...]
Diffstat (limited to 'src')
-rw-r--r-- | src/songvec.c | 2 | ||||
-rw-r--r-- | src/songvec.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/songvec.c b/src/songvec.c index c306ab640..ce04a4373 100644 --- a/src/songvec.c +++ b/src/songvec.c @@ -24,7 +24,7 @@ void songvec_sort(struct songvec *sv) pthread_mutex_unlock(&nr_lock); } -struct mpd_song *songvec_find(struct songvec *sv, const char *url) +struct mpd_song *songvec_find(const struct songvec *sv, const char *url) { int i; struct mpd_song *ret = NULL; diff --git a/src/songvec.h b/src/songvec.h index 0779552ae..633cf8d66 100644 --- a/src/songvec.h +++ b/src/songvec.h @@ -11,7 +11,7 @@ struct songvec { void songvec_sort(struct songvec *sv); -struct mpd_song *songvec_find(struct songvec *sv, const char *url); +struct mpd_song *songvec_find(const struct songvec *sv, const char *url); int songvec_delete(struct songvec *sv, const struct mpd_song *del); |