Commit 308bc230 authored by Max Kellermann's avatar Max Kellermann

song: pass const song pointer to song_get_url()

song_get_url() doesn't modify the song object.
parent 06c8a9ed
......@@ -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);
......
......@@ -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)
......
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