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
16b260e3
Commit
16b260e3
authored
Feb 03, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Client: eliminate client_puts(), use Client::Write() instead
parent
3102e05d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
14 deletions
+3
-14
Client.hxx
src/client/Client.hxx
+0
-5
ClientIdle.cxx
src/client/ClientIdle.cxx
+1
-1
ClientProcess.cxx
src/client/ClientProcess.cxx
+1
-1
ClientWrite.cxx
src/client/ClientWrite.cxx
+0
-6
Result.cxx
src/protocol/Result.cxx
+1
-1
No files found.
src/client/Client.hxx
View file @
16b260e3
...
...
@@ -215,11 +215,6 @@ client_new(EventLoop &loop, Partition &partition,
int
fd
,
SocketAddress
address
,
int
uid
);
/**
* Write a C string to the client.
*/
void
client_puts
(
Client
&
client
,
const
char
*
s
);
/**
* Write a printf-like formatted string to the client.
*/
void
client_vprintf
(
Client
&
client
,
const
char
*
fmt
,
va_list
args
);
...
...
src/client/ClientIdle.cxx
View file @
16b260e3
...
...
@@ -40,7 +40,7 @@ Client::IdleNotify()
idle_names
[
i
]);
}
client_puts
(
*
this
,
"OK
\n
"
);
Write
(
"OK
\n
"
);
TimeoutMonitor
::
Schedule
(
client_timeout
);
}
...
...
src/client/ClientProcess.cxx
View file @
16b260e3
...
...
@@ -44,7 +44,7 @@ client_process_command_list(Client &client, bool list_ok,
if
(
ret
!=
CommandResult
::
OK
||
client
.
IsExpired
())
break
;
else
if
(
list_ok
)
client
_puts
(
client
,
"list_OK
\n
"
);
client
.
Write
(
"list_OK
\n
"
);
}
return
ret
;
...
...
src/client/ClientWrite.cxx
View file @
16b260e3
...
...
@@ -38,12 +38,6 @@ Client::Write(const char *data)
}
void
client_puts
(
Client
&
client
,
const
char
*
s
)
{
client
.
Write
(
s
);
}
void
client_vprintf
(
Client
&
client
,
const
char
*
fmt
,
va_list
args
)
{
client
.
Write
(
FormatStringV
(
fmt
,
args
).
c_str
());
...
...
src/protocol/Result.cxx
View file @
16b260e3
...
...
@@ -24,5 +24,5 @@
void
command_success
(
Client
&
client
)
{
client
_puts
(
client
,
"OK
\n
"
);
client
.
Write
(
"OK
\n
"
);
}
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