aboutsummaryrefslogtreecommitdiffstats
path: root/src/song_save.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-08 11:05:34 +0200
committerMax Kellermann <max@duempel.org>2008-10-08 11:05:34 +0200
commit5e7b18f87458b3f7a65d23d87f7db3d864fbbf11 (patch)
tree2a1dd46bcff693de6849d31f204de554158de374 /src/song_save.c
parent5e4be9e495677a6728e3161e39a05a081a5bff9a (diff)
downloadmpd-5e7b18f87458b3f7a65d23d87f7db3d864fbbf11.tar.gz
mpd-5e7b18f87458b3f7a65d23d87f7db3d864fbbf11.tar.xz
mpd-5e7b18f87458b3f7a65d23d87f7db3d864fbbf11.zip
song: removed CamelCase
CamelCase is ugly... rename all functions.
Diffstat (limited to 'src/song_save.c')
-rw-r--r--src/song_save.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/song_save.c b/src/song_save.c
index 976a97afd..1afac0979 100644
--- a/src/song_save.c
+++ b/src/song_save.c
@@ -31,9 +31,9 @@
static void
song_save_url(FILE *fp, struct song *song)
{
- if (song->parentDir != NULL && song->parentDir->path != NULL)
+ if (song->parent != NULL && song->parent->path != NULL)
fprintf(fp, SONG_FILE "%s/%s\n",
- getDirectoryPath(song->parentDir), song->url);
+ getDirectoryPath(song->parent), song->url);
else
fprintf(fp, SONG_FILE "%s\n",
song->url);
@@ -81,7 +81,7 @@ insertSongIntoList(struct songvec *sv, struct song *newsong)
existing->mtime = newsong->mtime;
newsong->tag = NULL;
}
- freeJustSong(newsong);
+ song_free(newsong);
}
}
@@ -101,7 +101,7 @@ static int matchesAnMpdTagItemKey(char *buffer, int *itemType)
}
void readSongInfoIntoList(FILE *fp, struct songvec *sv,
- struct directory *parentDir)
+ struct directory *parent)
{
char buffer[MPD_PATH_MAX + 1024];
int bufferSize = MPD_PATH_MAX + 1024;
@@ -114,7 +114,7 @@ void readSongInfoIntoList(FILE *fp, struct songvec *sv,
insertSongIntoList(sv, song);
song = song_file_new(buffer + strlen(SONG_KEY),
- parentDir);
+ parent);
} else if (*buffer == 0) {
/* ignore empty lines (starting with '\0') */
} else if (song == NULL) {