aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/command.h')
-rw-r--r--src/command.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/command.h b/src/command.h
index cab6562db..fdb1e0869 100644
--- a/src/command.h
+++ b/src/command.h
@@ -48,18 +48,6 @@ void finishCommands();
#define commandSuccess(fd) fdprintf(fd, "OK\n")
-#define commandError(fd, error, format, ... ) do \
- {\
- if (current_command) { \
- fdprintf(fd, "ACK [%i@%i] {%s} " format "\n", \
- (int)error, command_listNum, \
- current_command, __VA_ARGS__); \
- current_command = NULL; \
- } \
- else { \
- fdprintf(STDERR_FILENO, "ACK [%i@%i] " format "\n", \
- (int)error, command_listNum, \
- __VA_ARGS__); \
- } \
- } while (0)
+mpd_fprintf_ void commandError(int fd, int error, const char *fmt, ...);
+
#endif