From 5e7b18f87458b3f7a65d23d87f7db3d864fbbf11 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 8 Oct 2008 11:05:34 +0200 Subject: song: removed CamelCase CamelCase is ugly... rename all functions. --- src/song_save.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/song_save.c') diff --git a/src/song_save.c b/src/song_save.c index 976a97af..1afac097 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) { -- cgit v1.2.3