diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-06-15 18:06:21 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-06-15 18:06:21 +0000 |
commit | 80dd76db7f927be1b6a967f43f36d705b701f153 (patch) | |
tree | 8d95e5e8eaaa92c3e581b1c991c0f82cdb33d435 /src/playlist.c | |
parent | 28d6bb796a0cf53c8d53e0de78e00e1fedcbf02d (diff) | |
download | mpd-80dd76db7f927be1b6a967f43f36d705b701f153.tar.gz mpd-80dd76db7f927be1b6a967f43f36d705b701f153.tar.xz mpd-80dd76db7f927be1b6a967f43f36d705b701f153.zip |
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
Diffstat (limited to '')
-rw-r--r-- | src/playlist.c | 7 |
1 files changed, 4 insertions, 3 deletions
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; } |