diff options
author | Eric Wong <normalperson@yhbt.net> | 2006-07-30 08:47:50 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2006-07-30 08:47:50 +0000 |
commit | e86fd65c81be319c8f4848d42053084ceab9afc8 (patch) | |
tree | e31337fe239384bab16b7b889b90075fa3f8b5b9 /src/playlist.c | |
parent | a0c8e3656ba1c7c796f47f7d020f448961b1b3c5 (diff) |
commandError() cleanups, fixup gcc checks
stripped binary size reduced by 9k on my machine from making
commandError a function. We'll print out error messages slightly
slower before, but the smaller binary is more than worth it.
git-svn-id: https://svn.musicpd.org/mpd/trunk@4488 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/playlist.c')
-rw-r--r-- | src/playlist.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/playlist.c b/src/playlist.c index 288848fb0..374de976b 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -671,7 +671,7 @@ int addSongToPlaylist(int fd, Song * song, int printId) if (playlist.length == playlist_max_length) { commandError(fd, ACK_ERROR_PLAYLIST_MAX, - "playlist is at the max size", NULL); + "playlist is at the max size"); return -1; } @@ -1360,7 +1360,7 @@ int deletePlaylist(int fd, char *utf8file) if (unlink(actualFile) < 0) { commandError(fd, ACK_ERROR_SYSTEM, - "problems deleting file", NULL); + "problems deleting file"); return -1; } @@ -1407,8 +1407,7 @@ int savePlaylist(int fd, char *utf8file) while (!(fileP = fopen(actualFile, "w")) && errno == EINTR) ; if (fileP == NULL) { - commandError(fd, ACK_ERROR_SYSTEM, "problems opening file", - NULL); + commandError(fd, ACK_ERROR_SYSTEM, "problems opening file"); return -1; } |