From 860f8bda714da8724777e47829e751585b4ca288 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Tue, 13 Apr 2004 19:08:38 +0000 Subject: ok, rework myfprintf so it uses write() and never use any file stream print functions. this way we can always know wtf is going on! also, remove some places where we were using fprintf and printf instead of myfprintf git-svn-id: https://svn.musicpd.org/mpd/trunk@734 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/playlist.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/playlist.c') diff --git a/src/playlist.c b/src/playlist.c index cf064047f..8bd5241bb 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -501,12 +501,12 @@ int swapSongsInPlaylist(FILE * fp, int song1, int song2) { int currentSong = -1; if(song1<0 || song1>=playlist.length) { - fprintf(fp,"%s \"%i\" is not in the playlist\n", + myfprintf(fp,"%s \"%i\" is not in the playlist\n", COMMAND_RESPOND_ERROR,song1); return -1; } if(song2<0 || song2>=playlist.length) { - fprintf(fp,"%s \"%i\" is not in the playlist\n", + myfprintf(fp,"%s \"%i\" is not in the playlist\n", COMMAND_RESPOND_ERROR,song2); return -1; } @@ -796,13 +796,13 @@ int moveSongInPlaylist(FILE * fp, int from, int to) { int currentSong = -1; if(from<0 || from>=playlist.length) { - fprintf(fp,"%s \"%i\" is not a song in the playlist\n", + myfprintf(fp,"%s \"%i\" is not a song in the playlist\n", COMMAND_RESPOND_ERROR,from); return -1; } if(to<0 || to>=playlist.length) { - fprintf(fp,"%s \"%i\" is not a song in the playlist\n", + myfprintf(fp,"%s \"%i\" is not a song in the playlist\n", COMMAND_RESPOND_ERROR,to); return -1; } -- cgit v1.2.3