You need to sign in or sign up before continuing.
Commit 9a18f61d authored by Warren Dukes's avatar Warren Dukes

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
parent ce8405d7
...@@ -72,9 +72,9 @@ typedef struct _Interface { ...@@ -72,9 +72,9 @@ typedef struct _Interface {
time_t lastTime; time_t lastTime;
List * commandList; /* for when in list mode */ List * commandList; /* for when in list mode */
int commandListOK; /* print OK after each command execution */ 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 */ 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 int expired; /* set whether this interface should be closed on next
check of old interfaces */ check of old interfaces */
int num; /* interface number */ int num; /* interface number */
...@@ -248,8 +248,9 @@ static int proccessLineOfInput(Interface * interface) { ...@@ -248,8 +248,9 @@ static int proccessLineOfInput(Interface * interface) {
"larger than the max " "larger than the max "
"(%lli)\n", "(%lli)\n",
interface->num, interface->num,
interface-> (long long)interface->
commandListSize, commandListSize,
(long long)
interface_max_command_list_size) interface_max_command_list_size)
; ;
closeInterface(interface); closeInterface(interface);
...@@ -636,8 +637,8 @@ void printInterfaceOutBuffer(Interface * interface) { ...@@ -636,8 +637,8 @@ void printInterfaceOutBuffer(Interface * interface) {
ERROR("interface %i: output buffer size (%lli) is " ERROR("interface %i: output buffer size (%lli) is "
"larger than the max (%lli)\n", "larger than the max (%lli)\n",
interface->num, interface->num,
interface->outputBufferSize, (long long)interface->outputBufferSize,
interface_max_output_buffer_size); (long long)interface_max_output_buffer_size);
/* cause interface to close */ /* cause interface to close */
freeList(interface->bufferList); freeList(interface->bufferList);
interface->bufferList = NULL; interface->bufferList = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment