Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
9a18f61d
Commit
9a18f61d
authored
Dec 22, 2004
by
Warren Dukes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
interface.c
src/interface.c
+6
-5
No files found.
src/interface.c
View file @
9a18f61d
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment