song_save: pass const songvec to songvec_save()
This commit is contained in:
parent
a81cb932c2
commit
e21ad70f3f
@ -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 @@
|
|||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user