From 515d8c344086746b44939652004a7b5ac1b85097 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 22 Mar 2014 00:39:02 +0100 Subject: [PATCH] fix CyaSSL build Signed-off-by: Felix Fietkau --- ustream-io-cyassl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ustream-io-cyassl.c b/ustream-io-cyassl.c index ea2efa9..d97d55e 100644 --- a/ustream-io-cyassl.c +++ b/ustream-io-cyassl.c @@ -97,10 +97,10 @@ static int io_send_cb(char *buf, int sz, void *ctx) } #endif -__hidden void ustream_set_io(void *ctx, void *ssl, struct ustream *conn) +__hidden void ustream_set_io(struct ustream_ssl_ctx *ctx, void *ssl, struct ustream *conn) { CyaSSL_SetIOReadCtx(ssl, conn); CyaSSL_SetIOWriteCtx(ssl, conn); - CyaSSL_SetIORecv(ctx, io_recv_cb); - CyaSSL_SetIOSend(ctx, io_send_cb); + CyaSSL_SetIORecv((void *) ctx, io_recv_cb); + CyaSSL_SetIOSend((void *) ctx, io_send_cb); } -- 2.30.2