From 6fbdc721d972d8c1f823acd5473a3dce8836d5fa Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 5 Feb 2008 10:17:33 +0000 Subject: fix -Wconst warnings [ew: cleaned up the dirty union hack a bit] Signed-off-by: Eric Wong git-svn-id: https://svn.musicpd.org/mpd/trunk@7180 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/song.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/song.h') diff --git a/src/song.h b/src/song.h index ccf87e348..6f06101bf 100644 --- a/src/song.h +++ b/src/song.h @@ -45,7 +45,7 @@ typedef List SongList; Song *newNullSong(void); -Song *newSong(char *url, int songType, struct _Directory *parentDir); +Song *newSong(const char *url, int songType, struct _Directory *parentDir); void freeSong(Song *); @@ -55,7 +55,7 @@ SongList *newSongList(void); void freeSongList(SongList * list); -Song *addSongToList(SongList * list, char *url, char *utf8path, +Song *addSongToList(SongList * list, const char *url, const char *utf8path, int songType, struct _Directory *parentDir); int printSongInfo(int fd, Song * song); -- cgit v1.2.3