Commit 82e74a4e authored by Max Kellermann's avatar Max Kellermann

Client: make client_vprintf() static

parent 16b260e3
......@@ -35,7 +35,6 @@
#include <list>
#include <stddef.h>
#include <stdarg.h>
class SocketAddress;
class EventLoop;
......@@ -217,11 +216,6 @@ client_new(EventLoop &loop, Partition &partition,
/**
* Write a printf-like formatted string to the client.
*/
void client_vprintf(Client &client, const char *fmt, va_list args);
/**
* Write a printf-like formatted string to the client.
*/
gcc_printf(2,3)
void
client_printf(Client &client, const char *fmt, ...);
......
......@@ -23,6 +23,7 @@
#include "util/AllocatedString.hxx"
#include <string.h>
#include <stdarg.h>
bool
Client::Write(const void *data, size_t length)
......@@ -37,7 +38,7 @@ Client::Write(const char *data)
return Write(data, strlen(data));
}
void
static void
client_vprintf(Client &client, const char *fmt, va_list args)
{
client.Write(FormatStringV(fmt, args).c_str());
......
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