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
2dac3ef5
Commit
2dac3ef5
authored
Jan 20, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
client: eliminate client_printf()
parent
86c7ab29
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
26 deletions
+0
-26
Client.hxx
src/client/Client.hxx
+0
-7
ClientWrite.cxx
src/client/ClientWrite.cxx
+0
-19
No files found.
src/client/Client.hxx
View file @
2dac3ef5
...
...
@@ -241,11 +241,4 @@ void
client_new
(
EventLoop
&
loop
,
Partition
&
partition
,
UniqueSocketDescriptor
fd
,
SocketAddress
address
,
int
uid
)
noexcept
;
/**
* Write a printf-like formatted string to the client.
*/
gcc_printf
(
2
,
3
)
void
client_printf
(
Client
&
client
,
const
char
*
fmt
,
...);
#endif
src/client/ClientWrite.cxx
View file @
2dac3ef5
...
...
@@ -19,11 +19,8 @@
#include "config.h"
#include "Client.hxx"
#include "util/FormatString.hxx"
#include "util/AllocatedString.hxx"
#include <string.h>
#include <stdarg.h>
bool
Client
::
Write
(
const
void
*
data
,
size_t
length
)
...
...
@@ -37,19 +34,3 @@ Client::Write(const char *data)
{
return
Write
(
data
,
strlen
(
data
));
}
static
void
client_vprintf
(
Client
&
client
,
const
char
*
fmt
,
va_list
args
)
{
client
.
Write
(
FormatStringV
(
fmt
,
args
).
c_str
());
}
void
client_printf
(
Client
&
client
,
const
char
*
fmt
,
...)
{
va_list
args
;
va_start
(
args
,
fmt
);
client_vprintf
(
client
,
fmt
,
args
);
va_end
(
args
);
}
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