aboutsummaryrefslogtreecommitdiffstats
path: root/src/song.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-08 11:07:58 +0200
committerEric Wong <normalperson@yhbt.net>2008-10-11 19:21:48 -0700
commita76121ea81f452c0d5e21d6a2fb6f200a80faf7b (patch)
treee59b04f16d56532284747f99fb5631cfd6b24c70 /src/song.c
parent4629f646077109f7c6185aab92560da52c237412 (diff)
downloadmpd-a76121ea81f452c0d5e21d6a2fb6f200a80faf7b.tar.gz
mpd-a76121ea81f452c0d5e21d6a2fb6f200a80faf7b.tar.xz
mpd-a76121ea81f452c0d5e21d6a2fb6f200a80faf7b.zip
directory: eliminate CamelCase
CamelCase is ugly, rename the functions. [ew: "directory_get_directory" was too confusing, using "directory_get_subdir" instead (old function was named "getSubDirectory")]
Diffstat (limited to 'src/song.c')
-rw-r--r--src/song.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/song.c b/src/song.c
index 18f2bca21..aa6641020 100644
--- a/src/song.c
+++ b/src/song.c
@@ -87,7 +87,7 @@ ssize_t song_print_url(struct mpd_song *song, int fd)
{
if (song->parent && song->parent->path)
return fdprintf(fd, "%s%s/%s\n", SONG_FILE,
- getDirectoryPath(song->parent), song->url);
+ directory_get_path(song->parent), song->url);
return fdprintf(fd, "%s%s\n", SONG_FILE, song->url);
}
@@ -244,7 +244,7 @@ char *song_get_url(struct mpd_song *song, char *path_max_tmp)
strcpy(path_max_tmp, song->url);
else
pfx_dir(path_max_tmp, song->url, strlen(song->url),
- getDirectoryPath(song->parent),
- strlen(getDirectoryPath(song->parent)));
+ directory_get_path(song->parent),
+ strlen(directory_get_path(song->parent)));
return path_max_tmp;
}