Client: make client_vprintf() static
This commit is contained in:
parent
16b260e371
commit
82e74a4ebd
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue