song_save: pass const songvec to songvec_save()

This commit is contained in:
Max Kellermann 2010-07-21 09:26:37 +02:00
parent a81cb932c2
commit e21ad70f3f
2 changed files with 3 additions and 2 deletions

View File

@ -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);
} }

View File

@ -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