Client: make client_vprintf() static

This commit is contained in:
Max Kellermann 2017-02-03 20:47:41 +01:00
parent 16b260e371
commit 82e74a4ebd
2 changed files with 2 additions and 7 deletions

View File

@ -35,7 +35,6 @@
#include <list>
#include <stddef.h>
#include <stdarg.h>
class SocketAddress;
class EventLoop;
@ -214,11 +213,6 @@ void
client_new(EventLoop &loop, Partition &partition,
int fd, SocketAddress address, int uid);
/**
* 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.
*/

View File

@ -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());