aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-07-21 09:26:37 +0200
committerMax Kellermann <max@duempel.org>2010-07-21 09:26:50 +0200
commite21ad70f3fa183447436c5434585288d58559a46 (patch)
tree6e58acb7e9da76f7a690c0bc8a6548aa2a44bbbd /src
parenta81cb932c219dfe0a51af747508f2d47b57ebf75 (diff)
downloadmpd-e21ad70f3fa183447436c5434585288d58559a46.tar.gz
mpd-e21ad70f3fa183447436c5434585288d58559a46.tar.xz
mpd-e21ad70f3fa183447436c5434585288d58559a46.zip
song_save: pass const songvec to songvec_save()
Diffstat (limited to '')
-rw-r--r--src/song_save.c2
-rw-r--r--src/song_save.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/song_save.c b/src/song_save.c
index 1a3faa02a..99d412f50 100644
--- a/src/song_save.c
+++ b/src/song_save.c
@@ -57,7 +57,7 @@ song_save(struct song *song, void *data)
return 0;
}
-void songvec_save(FILE *fp, struct songvec *sv)
+void songvec_save(FILE *fp, const struct songvec *sv)
{
songvec_for_each(sv, song_save, fp);
}
diff --git a/src/song_save.h b/src/song_save.h
index 9f3006515..0be36feca 100644
--- a/src/song_save.h
+++ b/src/song_save.h
@@ -29,7 +29,8 @@
struct songvec;
struct directory;
-void songvec_save(FILE *fp, struct songvec *sv);
+void
+songvec_save(FILE *fp, const struct songvec *sv);
/**
* Loads a song from the input file. Reading stops after the