From e86fd65c81be319c8f4848d42053084ceab9afc8 Mon Sep 17 00:00:00 2001
From: Eric Wong <normalperson@yhbt.net>
Date: Sun, 30 Jul 2006 08:47:50 +0000
Subject: 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
---
 src/playlist.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

(limited to 'src/playlist.c')

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;
 	}
 
-- 
cgit v1.2.3