aboutsummaryrefslogtreecommitdiffstats
path: root/src/directory.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-07-30 08:47:50 +0000
committerEric Wong <normalperson@yhbt.net>2006-07-30 08:47:50 +0000
commite86fd65c81be319c8f4848d42053084ceab9afc8 (patch)
treee31337fe239384bab16b7b889b90075fa3f8b5b9 /src/directory.c
parenta0c8e3656ba1c7c796f47f7d020f448961b1b3c5 (diff)
downloadmpd-e86fd65c81be319c8f4848d42053084ceab9afc8.tar.gz
mpd-e86fd65c81be319c8f4848d42053084ceab9afc8.tar.xz
mpd-e86fd65c81be319c8f4848d42053084ceab9afc8.zip
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 '')
-rw-r--r--src/directory.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/directory.c b/src/directory.c
index 0bf2b6453..fe98ec67e 100644
--- a/src/directory.c
+++ b/src/directory.c
@@ -162,8 +162,7 @@ void readDirectoryDBIfUpdateIsFinished()
int updateInit(int fd, List * pathList)
{
if (directory_updatePid > 0) {
- commandError(fd, ACK_ERROR_UPDATE_ALREADY, "already updating",
- NULL);
+ commandError(fd, ACK_ERROR_UPDATE_ALREADY, "already updating");
return -1;
}
@@ -217,7 +216,7 @@ int updateInit(int fd, List * pathList)
unblockSignals();
ERROR("updateInit: Problems forking()'ing\n");
commandError(fd, ACK_ERROR_SYSTEM,
- "problems trying to update", NULL);
+ "problems trying to update");
directory_updatePid = 0;
return -1;
}
@@ -891,8 +890,7 @@ int printDirectoryInfo(int fd, char *name)
Directory *directory;
if ((directory = getDirectory(name)) == NULL) {
- commandError(fd, ACK_ERROR_NO_EXIST, "directory not found",
- NULL);
+ commandError(fd, ACK_ERROR_NO_EXIST, "directory not found");
return -1;
}
@@ -1288,7 +1286,7 @@ int traverseAllIn(int fd, char *name,
return forEachSong(fd, song, data);
}
commandError(fd, ACK_ERROR_NO_EXIST,
- "directory or file not found", NULL);
+ "directory or file not found");
return -1;
}