From 381d7232a0d63c0a145fae5e2c40e577ff2f44f1 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 30 Jul 2006 23:32:39 +0000 Subject: remove deprecated myfprintf wrapper This shaves another 5-6k because we've removed the paranoid fflush() calls after every fprintf. Now we only fflush() when we need to git-svn-id: https://svn.musicpd.org/mpd/trunk@4493 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/song.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/song.c') diff --git a/src/song.c b/src/song.c index a601d5f67..62e699839 100644 --- a/src/song.c +++ b/src/song.c @@ -170,17 +170,18 @@ void writeSongInfoFromList(FILE * fp, SongList * list) { ListNode *tempNode = list->firstNode; - myfprintf(fp, "%s\n", SONG_BEGIN); + fprintf(fp, "%s\n", SONG_BEGIN); while (tempNode != NULL) { - myfprintf(fp, "%s%s\n", SONG_KEY, tempNode->key); + fprintf(fp, "%s%s\n", SONG_KEY, tempNode->key); + fflush(fp); printSongInfo(fileno(fp), (Song *) tempNode->data); - myfprintf(fp, "%s%li\n", SONG_MTIME, + fprintf(fp, "%s%li\n", SONG_MTIME, (long)((Song *) tempNode->data)->mtime); tempNode = tempNode->nextNode; } - myfprintf(fp, "%s\n", SONG_END); + fprintf(fp, "%s\n", SONG_END); } static void insertSongIntoList(SongList * list, ListNode ** nextSongNode, -- cgit v1.2.3