summaryrefslogtreecommitdiff
path: root/src/TimePrint.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-08-06 22:10:25 +0200
committerMax Kellermann <max@duempel.org>2015-08-12 08:41:05 +0200
commit7652a2986b0d0ad55b2776685130f1c68d7108c7 (patch)
treeb4d45e60e97757454f1ff8e4dc793a1e7d852c36 /src/TimePrint.cxx
parentb1480167be487d09ff46bb86ad02041fb28acff1 (diff)
client/Response: new Client wrapper class for writing responses
Diffstat (limited to 'src/TimePrint.cxx')
-rw-r--r--src/TimePrint.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/TimePrint.cxx b/src/TimePrint.cxx
index 326743869..f9a4dbd94 100644
--- a/src/TimePrint.cxx
+++ b/src/TimePrint.cxx
@@ -19,10 +19,10 @@
#include "config.h"
#include "TimePrint.hxx"
-#include "client/Client.hxx"
+#include "client/Response.hxx"
void
-time_print(Client &client, const char *name, time_t t)
+time_print(Response &r, const char *name, time_t t)
{
#ifdef WIN32
const struct tm *tm2 = gmtime(&t);
@@ -41,5 +41,5 @@ time_print(Client &client, const char *name, time_t t)
"%FT%TZ",
#endif
tm2);
- client_printf(client, "%s: %s\n", name, buffer);
+ r.Format("%s: %s\n", name, buffer);
}