Commit e21ad70f authored by Max Kellermann's avatar Max Kellermann

song_save: pass const songvec to songvec_save()

parent a81cb932
...@@ -57,7 +57,7 @@ song_save(struct song *song, void *data) ...@@ -57,7 +57,7 @@ song_save(struct song *song, void *data)
return 0; 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); songvec_for_each(sv, song_save, fp);
} }
......
...@@ -29,7 +29,8 @@ ...@@ -29,7 +29,8 @@
struct songvec; struct songvec;
struct directory; 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 * Loads a song from the input file. Reading stops after the
......
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