aboutsummaryrefslogtreecommitdiff
path: root/client-fn.c
diff options
context:
space:
mode:
Diffstat (limited to 'client-fn.c')
-rw-r--r--client-fn.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/client-fn.c b/client-fn.c
index f74564d1..3db69306 100644
--- a/client-fn.c
+++ b/client-fn.c
@@ -1,4 +1,4 @@
-/* $Id: client-fn.c,v 1.9 2009-07-30 20:57:39 tcunha Exp $ */
+/* $Id: client-fn.c,v 1.10 2009-08-14 21:04:04 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -66,14 +66,7 @@ void
client_write_server(
struct client_ctx *cctx, enum msgtype type, void *buf, size_t len)
{
- struct hdr hdr;
-
- hdr.type = type;
- hdr.size = len;
- buffer_write(cctx->srv_out, &hdr, sizeof hdr);
-
- if (buf != NULL && len > 0)
- buffer_write(cctx->srv_out, buf, len);
+ imsg_compose(&cctx->ibuf, type, PROTOCOL_VERSION, -1, -1, buf, len);
}
void