dbUtils, playlist, directory: pass constant pointers

The usual bunch of const pointer conversions.
This commit is contained in:
Max Kellermann
2008-09-06 15:28:31 +02:00
parent d38d2bc353
commit 35c0b84f08
6 changed files with 38 additions and 37 deletions

View File

@@ -1219,7 +1219,7 @@ static int traverseAllInSubDirectory(int fd, Directory * directory,
return errFlag;
}
int traverseAllIn(int fd, char *name,
int traverseAllIn(int fd, const char *name,
int (*forEachSong) (int, Song *, void *),
int (*forEachDir) (int, Directory *, void *), void *data)
{
@@ -1303,7 +1303,7 @@ static Song *getSongDetails(const char *file, const char **shortnameRet,
return (Song *) song;
}
Song *getSongFromDB(char *file)
Song *getSongFromDB(const char *file)
{
return getSongDetails(file, NULL, NULL);
}