song: pass const song pointer to song_get_url()

song_get_url() doesn't modify the song object.
This commit is contained in:
Max Kellermann 2008-10-14 11:10:44 +02:00
parent 06c8a9ed0b
commit 308bc230b2
2 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ song_file_update(struct song *song)
}
char *
song_get_url(struct song *song, char *path_max_tmp)
song_get_url(const struct song *song, char *path_max_tmp)
{
assert(song != NULL);
assert(*song->url);

View File

@ -65,7 +65,7 @@ song_file_update(struct song *song);
* terminating '\0').
*/
char *
song_get_url(struct song *song, char *path_max_tmp);
song_get_url(const struct song *song, char *path_max_tmp);
static inline bool
song_is_file(const struct song *song)