aboutsummaryrefslogtreecommitdiffstats
path: root/src/directory.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-06 15:28:31 +0200
committerMax Kellermann <max@duempel.org>2008-09-06 15:28:31 +0200
commit35c0b84f0897508b1f2fb82d1fc096164621b2bb (patch)
treec9a129da91fca3808adb586de8eecf392defb486 /src/directory.c
parentd38d2bc3533dcfb661a3cbb8bd6cd9574c31ab69 (diff)
downloadmpd-35c0b84f0897508b1f2fb82d1fc096164621b2bb.tar.gz
mpd-35c0b84f0897508b1f2fb82d1fc096164621b2bb.tar.xz
mpd-35c0b84f0897508b1f2fb82d1fc096164621b2bb.zip
dbUtils, playlist, directory: pass constant pointers
The usual bunch of const pointer conversions.
Diffstat (limited to 'src/directory.c')
-rw-r--r--src/directory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/directory.c b/src/directory.c
index 5375d8dd1..55ae560cc 100644
--- a/src/directory.c
+++ b/src/directory.c
@@ -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);
}