aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-12-22 04:04:38 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-12-22 04:04:38 +0000
commit9a18f61d4891841b601bc46d2a8e03a61b6f2184 (patch)
treeda15a18f123a05e378e48cede946c86c8b6fd667
parentce8405d7e81c5825a116f3d5a1b1477d6705d392 (diff)
downloadmpd-9a18f61d4891841b601bc46d2a8e03a61b6f2184.tar.gz
mpd-9a18f61d4891841b601bc46d2a8e03a61b6f2184.tar.xz
mpd-9a18f61d4891841b601bc46d2a8e03a61b6f2184.zip
fix some casting issues in error messages for output buffer size
git-svn-id: https://svn.musicpd.org/mpd/trunk@2812 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-rw-r--r--src/interface.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/interface.c b/src/interface.c
index 9cb256725..9e85e289d 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -72,9 +72,9 @@ typedef struct _Interface {
time_t lastTime;
List * commandList; /* for when in list mode */
int commandListOK; /* print OK after each command execution */
- unsigned long long commandListSize; /* mem commandList consumes */
+ size_t commandListSize; /* mem commandList consumes */
List * bufferList; /* for output if client is slow */
- unsigned long long outputBufferSize; /* mem bufferList consumes */
+ size_t outputBufferSize; /* mem bufferList consumes */
int expired; /* set whether this interface should be closed on next
check of old interfaces */
int num; /* interface number */
@@ -248,8 +248,9 @@ static int proccessLineOfInput(Interface * interface) {
"larger than the max "
"(%lli)\n",
interface->num,
- interface->
+ (long long)interface->
commandListSize,
+ (long long)
interface_max_command_list_size)
;
closeInterface(interface);
@@ -636,8 +637,8 @@ void printInterfaceOutBuffer(Interface * interface) {
ERROR("interface %i: output buffer size (%lli) is "
"larger than the max (%lli)\n",
interface->num,
- interface->outputBufferSize,
- interface_max_output_buffer_size);
+ (long long)interface->outputBufferSize,
+ (long long)interface_max_output_buffer_size);
/* cause interface to close */
freeList(interface->bufferList);
interface->bufferList = NULL;