Client: make client_vprintf() static
This commit is contained in:
@@ -35,7 +35,6 @@
|
|||||||
#include <list>
|
#include <list>
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdarg.h>
|
|
||||||
|
|
||||||
class SocketAddress;
|
class SocketAddress;
|
||||||
class EventLoop;
|
class EventLoop;
|
||||||
@@ -214,11 +213,6 @@ void
|
|||||||
client_new(EventLoop &loop, Partition &partition,
|
client_new(EventLoop &loop, Partition &partition,
|
||||||
int fd, SocketAddress address, int uid);
|
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.
|
* Write a printf-like formatted string to the client.
|
||||||
*/
|
*/
|
||||||
|
@@ -23,6 +23,7 @@
|
|||||||
#include "util/AllocatedString.hxx"
|
#include "util/AllocatedString.hxx"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
bool
|
bool
|
||||||
Client::Write(const void *data, size_t length)
|
Client::Write(const void *data, size_t length)
|
||||||
@@ -37,7 +38,7 @@ Client::Write(const char *data)
|
|||||||
return Write(data, strlen(data));
|
return Write(data, strlen(data));
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
client_vprintf(Client &client, const char *fmt, va_list args)
|
client_vprintf(Client &client, const char *fmt, va_list args)
|
||||||
{
|
{
|
||||||
client.Write(FormatStringV(fmt, args).c_str());
|
client.Write(FormatStringV(fmt, args).c_str());
|
||||||
|
Reference in New Issue
Block a user