song: pass const song pointer to song_get_url()
song_get_url() doesn't modify the song object.
This commit is contained in:
parent
06c8a9ed0b
commit
308bc230b2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user