diff options
Diffstat (limited to 'client-fn.c')
-rw-r--r-- | client-fn.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/client-fn.c b/client-fn.c index 129c6871..789ac427 100644 --- a/client-fn.c +++ b/client-fn.c @@ -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 |