From 80dd76db7f927be1b6a967f43f36d705b701f153 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Tue, 15 Jun 2004 18:06:21 +0000 Subject: fix C99 stuff for commandError also some slight optimizations to interfacePrintWithFD() and myfprintf() git-svn-id: https://svn.musicpd.org/mpd/trunk@1503 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/playlist.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/playlist.c') diff --git a/src/playlist.c b/src/playlist.c index 3da74754a..7c5410c66 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -609,7 +609,7 @@ int addToPlaylist(FILE * fp, char * url) { int addSongToPlaylist(FILE * fp, Song * song) { if(playlist.length==playlist_max_length) { commandError(fp, ACK_ERROR_PLAYLIST_MAX, - "playlist is at the max size"); + "playlist is at the max size", NULL); return -1; } @@ -1248,7 +1248,7 @@ int deletePlaylist(FILE * fp, char * utf8file) { if(unlink(actualFile)<0) { commandError(fp, ACK_ERROR_SYSTEM, - "problems deleting file"); + "problems deleting file", NULL); return -1; } @@ -1293,7 +1293,8 @@ int savePlaylist(FILE * fp, char * utf8file) { while(!(fileP = fopen(actualFile,"w")) && errno==EINTR); if(fileP==NULL) { - commandError(fp, ACK_ERROR_SYSTEM, "problems opening file"); + commandError(fp, ACK_ERROR_SYSTEM, "problems opening file", + NULL); return -1; } -- cgit v1.2.3